The source project of this merge request has been removed.
Enhance the Go CI-template
What does this MR do and why?
When running go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary ./...
the following error appears: go build: cannot write multiple packages to non-directory
That is, because the directory "mybinary" didn't exist, yet. This MR adds a simple mkdir mybinary
to solve this issue.
More information: https://github.com/golang/go/issues/36784
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Lukas Joisten