Repository navigation
fix(install): reconfigure Packmol when the shared build cache comes from another checkout - #10
Merged
Merged
Conversation
…rom another checkout make install-native failed with 'does not match the source ... used to generate cache' on a machine that had built another clone before. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Summary
Found by the fresh-clone install check:
scripts/rebuild_packmol.shbuilds in$HOME/.cache/karml-packmol-build/<platform>, shared by all checkouts; CMake aborts with "does not match the source ... used to generate cache" when that cache came from another clone, which mademake install-nativefail after the CHARMM library had built. The script now drops only the stale configure state (CMakeCache.txt, CMakeFiles).Tests
New
tests/unit/test_rebuild_packmol_stale_cache.py(stub cmake/gfortran, mismatched cache): 1 passed. Real-world proof: fresh-clone check re-run, see PR comments.🤖 Generated with Claude Code