Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: when setting up Mathlib CI, make sure nightly-with-mathlib branch has been fetched #3834

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

kim-em
Copy link
Collaborator

@kim-em kim-em commented Apr 5, 2024

As reported on zulip.

@kim-em kim-em requested a review from Kha as a code owner April 5, 2024 00:25
@kim-em kim-em enabled auto-merge April 5, 2024 00:26
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc April 5, 2024 00:40 Inactive
@kim-em kim-em added this pull request to the merge queue Apr 5, 2024
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Apr 5, 2024
Merged via the queue into master with commit 0aa6831 Apr 5, 2024
12 checks passed
nomeata added a commit that referenced this pull request Apr 15, 2024
this refines upon #3834, which didn’t quite work, and was producing
```
 From https://github.com/leanprover/lean4
 * branch                  nightly-with-mathlib -> FETCH_HEAD
 * [new branch]            nightly-with-mathlib -> origin/nightly-with-mathlib
fatal: ambiguous argument 'nightly-with-mathlib': unknown revision or path not in the working tree.
```
Probably `git -C lean4.git fetch origin nightly-with-mathlib:nightly-with-mathlib`
would have worked, or using `rev-parse origin/nightly-with-mathlib`.

We now get the commit hash via `git ls-remote`, which I’d wager is a bit
more robust, as it is independent of the local state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant