From da382443f224062db0955609fdce0406d88065d3 Mon Sep 17 00:00:00 2001 From: Joshua Rich Date: Thu, 3 Oct 2024 21:14:26 +1000 Subject: [PATCH] build(mage): :bug: don't generate environment for go generate --- build/magefiles/preps.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/build/magefiles/preps.go b/build/magefiles/preps.go index 86ba19788..0ba00bc00 100644 --- a/build/magefiles/preps.go +++ b/build/magefiles/preps.go @@ -54,14 +54,9 @@ func (Preps) Format() error { // Generate ensures all machine-generated files (gotext, stringer, moq, etc.) // are up to date. func (Preps) Generate() error { - envMap, err := generateEnv() - if err != nil { - return errors.Join(ErrBuildFailed, err) - } - slog.Info("Running go generate...") - if err := sh.RunWithV(envMap, "go", "generate", "./..."); err != nil { + if err := sh.RunV("go", "generate", "./..."); err != nil { return fmt.Errorf("failed to run go generate: %w", err) }