Skip to content

Commit 75c0540

Browse files
committed
Fixing ldflags for cross-compile, adding go get for required library for windows cross-compile.
1 parent fda8b24 commit 75c0540

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ env:
66
before_install:
77
- go get github.com/mitchellh/gox
88
- go get github.com/tcnksm/ghr
9+
- go get github.com/inconshreveable/mousetrap
910
script:
1011
- go test -v ./...
1112
after_success:

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ XC_OS=${XC_OS:-linux darwin windows}
2121
gox \
2222
-os="${XC_OS}" \
2323
-arch="${XC_ARCH}" \
24-
-ldflags "-X main.GitTag ${VERSION}" \
24+
-ldflags "-X main.GitTag=${VERSION}" \
2525
-output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}" \
2626
./...
2727

0 commit comments

Comments
 (0)