From a914e00618e778fe87e374c2c23869af214da222 Mon Sep 17 00:00:00 2001 From: Carolyn Van Slyck Date: Thu, 23 Feb 2023 10:48:36 -0600 Subject: [PATCH] Stop if a mixin build fails 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 --- mixins/magefile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixins/magefile.go b/mixins/magefile.go index 6998734..4823b1d 100644 --- a/mixins/magefile.go +++ b/mixins/magefile.go @@ -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