Skip to content

Commit

Permalink
Stop if a mixin build fails
Browse files Browse the repository at this point in the history
Check if build failed and halt immediately. his ensures that if a user runs `mage build test` that when build fails, test is not run.

Signed-off-by: Carolyn Van Slyck <[email protected]>
  • Loading branch information
carolynvs committed Feb 23, 2023
1 parent 7451d19 commit a914e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mixins/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (m Magefile) ConfigureAgent() {
// Build the mixin
func (m Magefile) Build() {
must.RunV("go", "mod", "tidy")
releases.BuildAll(m.Pkg, m.MixinName, m.BinDir)
mgx.Must(releases.BuildAll(m.Pkg, m.MixinName, m.BinDir))
}

// XBuildAll cross-compiles the mixin before a release
Expand Down

0 comments on commit a914e00

Please sign in to comment.