Skip to content

Fix commit.txt always checked#614

Open
adamdickmeiss wants to merge 2 commits into
mainfrom
fix-generate-commit-id-always-executed
Open

Fix commit.txt always checked#614
adamdickmeiss wants to merge 2 commits into
mainfrom
fix-generate-commit-id-always-executed

Conversation

@adamdickmeiss
Copy link
Copy Markdown
Contributor

Even if the commit.txt is unchanged, it must still be touched so this rule is not always executed.

Even if the commit.txt is unchanged, it must still be touched so this
rule is not always executed.
Copilot AI review requested due to automatic review settings May 26, 2026 11:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the broker Makefile rule that generates commit.txt so it is always updated, preventing the commit ID target from being considered perpetually out-of-date when the content hasn’t changed.

Changes:

  • Simplified $(COMMIT_ID) generation to always write the current short Git SHA.
  • Removed conditional “write only if changed” logic for commit.txt.

Comment thread broker/Makefile
if [ ! -f "$@" ] || [ "$$(cat "$@")" != "$$commit" ]; then \
printf "%s" "$$commit" > "$@"; \
fi
$(GIT) rev-parse --short HEAD | tr -d '\n' > $(COMMIT_ID)
Comment thread broker/Makefile
if [ ! -f "$@" ] || [ "$$(cat "$@")" != "$$commit" ]; then \
printf "%s" "$$commit" > "$@"; \
fi
$(GIT) rev-parse --short HEAD | tr -d '\n' > $(COMMIT_ID)
@jakub-id
Copy link
Copy Markdown
Contributor

@adamdickmeiss what was wrong with the previous approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants