chore: upgrade GTS to v0.12.2

Also update magefiles to always enable logging to os.Stdout when
verifying downloaded files.
This commit is contained in:
Dan Anglin 2023-11-17 22:11:46 +00:00
parent bf215d8891
commit beb3826190
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 4 additions and 6 deletions

2
config

@ -1 +1 @@
Subproject commit 2e25386f4f48da38e34b0ea259b04f310d1a3c91 Subproject commit da2421971dc58cfa90c472c59292129596408158

View file

@ -12,8 +12,6 @@ import (
// Deploy deploys the services to the Flow Platform. // Deploy deploys the services to the Flow Platform.
func Deploy(environment, name string) error { func Deploy(environment, name string) error {
os.Setenv("MAGEFILE_VERBOSE", "true")
mg.Deps( mg.Deps(
mg.F(Prepare, environment, name), mg.F(Prepare, environment, name),
) )
@ -39,5 +37,5 @@ func Deploy(environment, name string) error {
command = append(command, name) command = append(command, name)
} }
return sh.Run(command[0], command[1:]...) return sh.RunV(command[0], command[1:]...)
} }

View file

@ -290,7 +290,7 @@ func download(pack downloadPack) error {
if pack.validateGPGSignature { if pack.validateGPGSignature {
for i := range pack.packages { for i := range pack.packages {
if err := sh.Run("gpg", "--verify", pack.packages[i].gpgSignature.destination, pack.packages[i].file.destination); err != nil { if err := sh.RunV("gpg", "--verify", pack.packages[i].gpgSignature.destination, pack.packages[i].file.destination); err != nil {
return fmt.Errorf("GPG verification failed for '%s'; %w", pack.packages[i].file.destination, err) return fmt.Errorf("GPG verification failed for '%s'; %w", pack.packages[i].file.destination, err)
} }
} }
@ -308,7 +308,7 @@ func download(pack downloadPack) error {
checksum := filepath.Base(pack.checksum.destination) checksum := filepath.Base(pack.checksum.destination)
if err := sh.Run("sha256sum", "--check", "--ignore-missing", checksum); err != nil { if err := sh.RunV("sha256sum", "--check", "--ignore-missing", checksum); err != nil {
return err return err
} }