提交 62b3f2d4 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!16 isula-build: bump version to 0.9.0

Merge pull request !16 from Vanient/bump
......@@ -2,7 +2,7 @@ PREFIX := /usr
BINDIR := $(PREFIX)/bin
SOURCES := $(shell find . 2>&1 | grep -E '.*\.(c|h|go)$$')
GIT_COMMIT ?= $(if $(shell git rev-parse --short HEAD),$(shell git rev-parse --short HEAD),$(error "git failed"))
GIT_COMMIT ?= $(if $(shell git rev-parse --short HEAD),$(shell git rev-parse --short HEAD),$(shell cat ./git-commit | head -c 7))
SOURCE_DATE_EPOCH ?= $(if $(shell date +%s),$(shell date +%s),$(error "date failed"))
VERSION := $(shell cat ./VERSION)
ARCH := $(shell arch)
......@@ -25,7 +25,7 @@ IMAGE_NAME := isula-build-dev
GO := go
# test for go module support
ifeq ($(shell go help mod >/dev/null 2>&1 && echo true), true)
export GO_BUILD=GO111MODULE=on; $(GO) mod vendor; $(GO) build -mod=vendor
export GO_BUILD=GO111MODULE=on; $(GO) build -mod=vendor
else
export GO_BUILD=$(GO) build
endif
......
......@@ -22,8 +22,6 @@ if [ ! -z "${SKIP_REG}" ]; then
fi
echo "Testing with args ${TEST_ARGS}"
go mod vendor
testlog=${PWD}"/unit_test_log"
rm -f "${testlog}"
touch "${testlog}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册