Skip to content

Enhance the Go CI-template

Lukas Joisten requested to merge (removed):Lukas-J-master-patch-76502 into master

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.

Edited by Lukas Joisten

Merge request reports