mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
* Circular symbolic links are terrible for sync'd filesystems and this build hack isn't strictly needed. Missing godeps are caught by CI
9 lines
311 B
Bash
Executable File
9 lines
311 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# allow builds outside the standard GOPATH via symlink
|
|
export GOPATH=${PWD}/Godeps/_workspace:$GOPATH
|
|
export GOBIN=${PWD}/bin
|
|
|
|
LD_FLAGS="-w -X main.version=$(./git-version)"
|
|
CGO_ENABLED=0 go build -o bin/bootcfg -ldflags "$LD_FLAGS" -a -tags netgo github.com/coreos/coreos-baremetal/cmd/bootcfg
|