From ae766f52c78b96dda14c456229b8c5115f588a6a Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 6 Sep 2023 18:36:08 +0200 Subject: [PATCH] fix(build): don't generate swagger files when building --- magefile.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/magefile.go b/magefile.go index 0122c5cd448..ccbec1285c8 100644 --- a/magefile.go +++ b/magefile.go @@ -465,7 +465,6 @@ func (Build) Clean() error { // Builds a vikunja binary, ready to run func (Build) Build() { mg.Deps(initVars) - mg.Deps(DoTheSwag) runAndStreamOutput("go", "build", Goflags[0], "-tags", Tags, "-ldflags", "-s -w "+Ldflags, "-o", Executable) } @@ -475,7 +474,6 @@ type Release mg.Namespace func (Release) Release(ctx context.Context) error { mg.Deps(initVars) mg.Deps(Release.Dirs) - mg.Deps(DoTheSwag) // Run compiling in parallel to speed it up errs, _ := errgroup.WithContext(ctx) @@ -517,7 +515,6 @@ func (Release) Dirs() error { func runXgo(targets string) error { mg.Deps(initVars) - mg.Deps(DoTheSwag) checkAndInstallGoTool("xgo", "src.techknowlogick.com/xgo") extraLdflags := `-linkmode external -extldflags "-static" `