Skip to content

Avoid diffs when the only change is buildvcs metadata #285

@imjasonh

Description

@imjasonh

Should be opt in

In a monorepo with many images, deploying may only rebuild the image to include a new buildvcs commit, and otherwise have no code changes.

At the same time, including buildvcs info is useful, and disabling it would be a loss.

The ko build diff could build before/after and determine if the only change is the buildvcs, and suppress the diff (avoiding downstream redeploy) if the only change was buildvcs

As work toward this, the resource output could include the metadata in https://pkg.go.dev/debug/buildinfo#BuildInfo so ko build diffs are richer and show dep changes etc in TF diffs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions