Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow overriding vergen in docker builds (#34036)
Vergen has somewhat annoying behavior in that when _not_ running in a git repo, it sets all git-generated env vars to VERGEN_IDEMPOTENT_VALUE to prevent compile-time panics in apps that use `env!` So the only way to get around that is to insist that it fails when a git repo can't be found, catch the error, and then manually set the values such that they'll be correct if present in the docker build environment, otherwise they'll fall back to "unknown". GitOrigin-RevId: d2b5967e0be039d808f9440c744f25e05fd00509
- Loading branch information