Fix build script

This commit is contained in:
Daniel 2022-07-11 17:03:35 +02:00
parent 4556eda901
commit 028a0b0d20

View file

@ -51,5 +51,5 @@ echo "This information is useful for debugging and license compliance."
echo "Run the compiled binary with the version command to see the information included." echo "Run the compiled binary with the version command to see the information included."
# build # build
BUILD_PATH="github.com/safing/jess/vendor/github.com/safing/portbase/info" BUILD_PATH="github.com/safing/portbase/info"
go build -ldflags "-X ${BUILD_PATH}.commit=${BUILD_COMMIT} -X ${BUILD_PATH}.buildOptions=${BUILD_BUILDOPTIONS} -X ${BUILD_PATH}.buildUser=${BUILD_USER} -X ${BUILD_PATH}.buildHost=${BUILD_HOST} -X ${BUILD_PATH}.buildDate=${BUILD_DATE} -X ${BUILD_PATH}.buildSource=${BUILD_SOURCE}" $@ go build -ldflags "-X ${BUILD_PATH}.commit=${BUILD_COMMIT} -X ${BUILD_PATH}.buildOptions=${BUILD_BUILDOPTIONS} -X ${BUILD_PATH}.buildUser=${BUILD_USER} -X ${BUILD_PATH}.buildHost=${BUILD_HOST} -X ${BUILD_PATH}.buildDate=${BUILD_DATE} -X ${BUILD_PATH}.buildSource=${BUILD_SOURCE}" "$@"