]> Sergey Matveev's repositories - meta4ra.git/blobdiff - build
Prepare for release
[meta4ra.git] / build
diff --git a/build b/build
index 32381dd94849c6b97d7250c050981d9d8e681931..9e81b1cad50ddf46649bfa2909363973cc786bb8 100755 (executable)
--- a/build
+++ b/build
@@ -1,3 +1,4 @@
 #!/bin/sh -e
 
-exec go build -C cmd/meta4ra -ldflags=-s $@ -o ../../bin/meta4ra
+[ -d vendor ] && mod_vendor="-mod=vendor"
+exec go build -C cmd/meta4ra -ldflags=-s $mod_vendor $@ -o ../../bin/meta4ra