Skip to content

Fix commit.txt always checked#614

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

Fix commit.txt always checked#614
adamdickmeiss wants to merge 4 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 Outdated
Comment thread broker/Makefile Outdated
@jakub-id
Copy link
Copy Markdown
Contributor

@adamdickmeiss what was wrong with the previous approach?

@adamdickmeiss
Copy link
Copy Markdown
Contributor Author

adamdickmeiss commented May 28, 2026

@adamdickmeiss what was wrong with the previous approach?

If commit.txt is not changed due a condition, the modification date is, thus, not modified, make will always repeat the rule. It seems wrong that a target is not updated to make make happy.. The rule will keep running for all make invocations.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 28, 2026 12:55
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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