mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-07-11 06:33:04 +00:00
Change .goreleaser.yml to support go module build
This commit is contained in:
parent
d134ac8485
commit
33f077ce1b
@ -1,5 +1,10 @@
|
|||||||
# This is an example goreleaser.yaml file with some sane defaults.
|
# This is an example goreleaser.yaml file with some sane defaults.
|
||||||
# Make sure to check the documentation at http://goreleaser.com
|
# Make sure to check the documentation at http://goreleaser.com
|
||||||
|
env:
|
||||||
|
- GO111MODULE=on
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
- go mod download
|
||||||
builds:
|
builds:
|
||||||
-
|
-
|
||||||
env:
|
env:
|
||||||
|
2
build
2
build
@ -23,7 +23,7 @@ LDFLAGS="-X main.version=${VERSION:-master} -X main.commit=${COMMIT} -X main.dat
|
|||||||
export CGO_ENABLED=0
|
export CGO_ENABLED=0
|
||||||
|
|
||||||
# this if... will be removed when gomodules goes default
|
# this if... will be removed when gomodules goes default
|
||||||
if [ $GO111MODULE == "off" ]; then
|
if [ "$GO111MODULE" == "off" ]; then
|
||||||
echo "Building plugin without go module"
|
echo "Building plugin without go module"
|
||||||
echo "Warning: this will be deprecated in near future so please use go modules!"
|
echo "Warning: this will be deprecated in near future so please use go modules!"
|
||||||
|
|
||||||
|
2
test.sh
2
test.sh
@ -2,7 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# this if... will be removed when gomodules goes default
|
# this if... will be removed when gomodules goes default
|
||||||
if [ $GO111MODULE == "off" ]; then
|
if [ "$GO111MODULE" == "off" ]; then
|
||||||
echo "Warning: this will be deprecated in near future so please use go modules!"
|
echo "Warning: this will be deprecated in near future so please use go modules!"
|
||||||
|
|
||||||
ORG_PATH="github.com/intel"
|
ORG_PATH="github.com/intel"
|
||||||
|
Loading…
Reference in New Issue
Block a user