Justin Chadwell
a43d9a67c7
git: fix error wrapping to ensure internal errors are propogated
...
Also, tidy up the error printing, so that now we always print out the
"current commit information was not captured by the build" message,
instead of just for not locating the git binary.
Before:
WARNING: buildx: git was not found in the system. Current commit information was not captured by the build
After:
WARNING: current commit information was not captured by the build: git was not found in the system: <error message>
Signed-off-by: Justin Chadwell <me@jedevc.com>
1 year ago
CrazyMax
0645acfd79
build: makes git dirty check opt-in
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
fd5884189c
build: check reachable git commits
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
6db696748b
build: better message output for git provenance
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
4789d2219c
build: silently fail if git remote not found
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
Tonis Tiigi
551b8f6785
git: do not show warnings if project does not use git
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2 years ago
CrazyMax
0d1fea8134
build: warn if git operation fails
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
19417e76e7
build: lookup the right git binary on WSL
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
cf8fa4a404
build: fix env vars check for vcs details
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
6ad5e2fcf3
build: set provenance vcs details
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
David Gageot
be7e91899b
Support empty env var when it can't be unset
...
Signed-off-by: David Gageot <david.gageot@docker.com>
2 years ago
Christian Dupuis
e3c91c9d29
Add git provenance labels
...
as per #1290
Signed-off-by: Christian Dupuis <cd@atomist.com>
2 years ago