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

Fix printing of spack commit into generated Makefile #200

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

msimberg
Copy link
Contributor

Reverts #199, and instead explicitly decodes the result of git rev-parse to ensure the commit is printed in the Makefile without a b'...' prefix.

…template

The stdout byte array is printed as

b'<commit hash>'

which will be interpreted in the Makefile as a string with a prefix of
b. Explicitly decoding the byte array to a string first ensures the git
commit will be printed without extra quotes or prefixes in the Makefile.
@bcumming bcumming merged commit 27ed1e9 into master Nov 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants