Repository navigation
Clone jigsaw-python over HTTPS and at a requested ref - #575
Merged
Merged
Conversation
`mache jigsaw install` clones jigsaw-python when the source is not already there. It cloned over SSH, which fails for anyone without a GitHub SSH key, as is common on HPC login nodes and for users who installed a downstream package such as polaris from conda-forge rather than working in a clone. jigsaw-python is public, so HTTPS works for everyone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A downstream package pins the jigsaw-python commit it is tested with (polaris through its jigsaw-python submodule), and JIGSAW's meshes depend on its version. But when mache had to clone jigsaw-python it took a depth-1 clone of the default branch, so anyone installing JIGSAW outside a clone of the downstream repository, e.g. for polaris installed from conda-forge, silently built whatever jigsaw-python had that day. `mache jigsaw install --jigsaw-python-ref REF` (and `jigsaw_python_ref` in `deploy_jigsawpy()` and `build_jigsawpy_package()`) asks for a commit, tag or branch: * A missing source is cloned with `--filter=blob:none --no-checkout` and then checked out at REF. The blobless clone has every commit, so an abbreviated commit works, but downloads only the files of the commit that is checked out. * An existing checkout is never moved: it may be a submodule whose commit the enclosing repository records, or a clone with someone's work in it. Instead, mache resolves REF there and stops before building if HEAD is a different commit or REF is unknown, saying to check out REF or remove the directory. Without a ref, nothing changes. The build cache key already includes the source's HEAD, so a different ref gets its own build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
TestingOn Linux, in a conda environment with a local build of polaris 1.2.1 from conda-forge's dependencies, I ran Posted by Claude Code on @xylar's behalf. The testing, analysis and wording above are AI-authored; please check them accordingly. |
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mache jigsaw installnow clones jigsaw-python over HTTPS instead of SSH, and takes--jigsaw-python-refto build a given commit, tag or branch. Until now, someone installing JIGSAW outside a downstream repository (for example, for polaris installed from conda-forge) needed a GitHub SSH key and got whatever jigsaw-python's default branch held that day, not the commit polaris pins.With a ref, a missing source is cloned at that ref, and an existing checkout at a different commit stops the build instead of being moved. Without a ref, nothing changes but the URL.
Checklist
Testingcomment, if appropriate, in the PR documents testing used to verify the changesPosted by Claude Code on @xylar's behalf. The testing, analysis and wording above are AI-authored; please check them accordingly.