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: pr-release.yaml: fetch nightly-with-mathlib sha using ls-remote #3914

Closed
wants to merge 1 commit into from

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented 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.

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.
@nomeata nomeata requested a review from Kha as a code owner April 15, 2024 13:37
@nomeata nomeata added the will-merge-soon …unless someone speaks up label Apr 15, 2024
@nomeata nomeata requested a review from kim-em as a code owner April 15, 2024 13:37
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc April 15, 2024 13:50 Inactive
@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 15, 2024
@nomeata
Copy link
Collaborator Author

nomeata commented Apr 16, 2024

Raced by #3923

@nomeata nomeata closed this Apr 16, 2024
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 will-merge-soon …unless someone speaks up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant