Skip to content

util/git::get_commit_sha: do not conflate git warnings with output#51045

Merged
haampie merged 1 commit intodevelopfrom
bugfix/commit-provenance-git-warning-error
Jul 25, 2025
Merged

util/git::get_commit_sha: do not conflate git warnings with output#51045
haampie merged 1 commit intodevelopfrom
bugfix/commit-provenance-git-warning-error

Conversation

@becker33
Copy link
Copy Markdown
Member

Saw a user error

Error: Internal Error: libfix's assigned commit X11 does not meet commit syntax requirements

This is caused by Spack trying to parse an X11 warning from git ls-remote as output and assigning it as the commit sha.

This PR fixes it by redirecting stderr to os.devnull.

@becker33 becker33 added the v1.0.1 PRs to backport for v1.0.1 label Jul 25, 2025
@becker33 becker33 requested a review from psakievich July 25, 2025 13:41
@haampie haampie enabled auto-merge (squash) July 25, 2025 13:43
@haampie haampie merged commit 7eeef1f into develop Jul 25, 2025
30 checks passed
@haampie haampie deleted the bugfix/commit-provenance-git-warning-error branch July 25, 2025 14:38
haampie pushed a commit that referenced this pull request Jul 29, 2025
@haampie haampie mentioned this pull request Jul 29, 2025
29 tasks
haampie pushed a commit that referenced this pull request Jul 29, 2025
Signed-off-by: Gregory Becker <[email protected]>
Signed-off-by: Harmen Stoppels <[email protected]>
alecbcs pushed a commit that referenced this pull request Aug 12, 2025
Signed-off-by: Gregory Becker <[email protected]>
Signed-off-by: Harmen Stoppels <[email protected]>
alstar555 pushed a commit to alstar555/spack that referenced this pull request Aug 27, 2025
Signed-off-by: Gregory Becker <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.0.1 PRs to backport for v1.0.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants