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
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