Skip to content

Fix .image.json when TAG changes - #990

Open
leighmcculloch wants to merge 3 commits into
mainfrom
regenerate-image-json-on-tag
Open

leighmcculloch wants to merge 3 commits into
mainfrom
regenerate-image-json-on-tag

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Make TAG an input to .image.json so it regenerates when make runs with a different tag.

Why

Running make build with a different TAG than the previous build reused the stale .image.json, building the image with the previous tag's dependencies

@leighmcculloch
leighmcculloch requested review from a team and a lite review from Copilot September 29, 2026 04:24
@leighmcculloch
leighmcculloch enabled auto-merge (squash) September 29, 2026 04:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Declare FORCE as phony to prevent stale .image.json output.

Review effort: Lite
Findings: None

What changed in this PR

Updates Makefile dependency tracking so .image.json regenerates when TAG changes.

Changes:

  • Adds .image.tag as a generated TAG marker.
  • Makes .image.json depend on the marker.
  • Ignores .image.tag in Git.
File Description
Makefile Tracks TAG changes for image configuration regeneration.
.gitignore Excludes the generated .image.tag file.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI lite review requested due to automatic review settings September 30, 2026 13:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

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

Labels

None yet

Projects

Status: Backlog (Not Ready)

Development

Successfully merging this pull request may close these issues.

3 participants