fix: rename packages

This commit is contained in:
2019-05-12 11:57:53 +02:00
parent d3c4ca2c72
commit c5233d578a
33 changed files with 59 additions and 73 deletions

View File

@ -2,17 +2,10 @@
# UID or GID is the UNIX user ID or group ID of the user who executes
# make. If the UID or GID is not passed as a make variable, an attempt
# is made to determine it.
UID?=$(shell id -u)
GID?=$(shell id -g)
UID?=$(shell id --user)
GID?=$(shell id --group)
# VERSION
# UID/GID
# UID or GID is the UNIX user ID or group ID of the user who executes
# make. If the UID or GID is not passed as a make variable, an attempt
# is made to determine it.
UID?=$(shell id -u)
GID?=$(shell id -g)
# If no version is specified as a parameter of make, the last git hash
# value is taken.
VERSION:=$(or ${TRAVIS_TAG}, ${TRAVIS_TAG}, $(shell git rev-parse --short HEAD)-git)
@ -25,15 +18,10 @@ build:
GOOS=${GOOS} \
GOARCH=${GOARCH} \
go build -ldflags "-X main.version=${VERSION}"
chown -R ${UID}:${GID} *
docker-build:
docker run \
--volume ${PWD}:/workspace \
volkerraschek/build-image:1.0.0 \
make build VERSION=${VERSION} GOOS=${GOOS} GOARCH=${GOARCH}
docker-sanitized:
docker run \
--volume ${PWD}:/workspace \
volkerraschek/build-image:1.0.0 \
chown ${UID}:${GID} -R /workspace
make build UID=${UID} GID=${GID} VERSION=${VERSION} GOOS=${GOOS} GOARCH=${GOARCH}