mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
build: Remove build with Godeps circular symlinking
* Circular symbolic links are terrible for sync'd filesystems and this build hack isn't strictly needed. Missing godeps are caught by CI
This commit is contained in:
6
build
6
build
@@ -1,12 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# allow builds outside the standard GOPATH via symlink
|
||||
export GOPATH=${PWD}/Godeps/_workspace
|
||||
export GOPATH=${PWD}/Godeps/_workspace:$GOPATH
|
||||
export GOBIN=${PWD}/bin
|
||||
|
||||
mkdir -p $GOPATH/src/github.com/coreos
|
||||
# directory or symlink must be present
|
||||
[ -d $GOPATH/src/github.com/coreos/coreos-baremetal ] || ln -s ${PWD} $GOPATH/src/github.com/coreos/coreos-baremetal
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user