Skip to content

Commit f932e55

Browse files
authored
Feat: Build manifest on every backend build (#1191)
1 parent 5364a9d commit f932e55

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build/common.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ func buildBackend(cfg Config) error {
9898
return err
9999
}
100100

101-
// TODO: Change to sh.RunWithV once available.
102-
return sh.RunWith(cfg.Env, "go", args...)
101+
err = sh.RunWithV(cfg.Env, "go", args...)
102+
if err != nil {
103+
return err
104+
}
105+
b := Build{}
106+
return b.GenerateManifestFile()
103107
}
104108

105109
func getBuildBackendCmdInfo(cfg Config) (Config, []string, error) {
@@ -335,7 +339,7 @@ func (Build) Backend() error {
335339
// BuildAll builds production executables for all supported platforms.
336340
func BuildAll() { //revive:disable-line
337341
b := Build{}
338-
mg.Deps(b.Linux, b.Windows, b.Darwin, b.DarwinARM64, b.LinuxARM64, b.LinuxARM, b.GenerateManifestFile)
342+
mg.Deps(b.Linux, b.Windows, b.Darwin, b.DarwinARM64, b.LinuxARM64, b.LinuxARM)
339343
}
340344

341345
//go:embed tmpl/*

0 commit comments

Comments
 (0)