Skip to content
Snippets Groups Projects
Commit 1698682b authored by Ariadne Conill's avatar Ariadne Conill
Browse files

community/docker-credential-ecr-login: fix GOFLAGS in the same way as other packages

parent 7dacacac
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,9 @@ makedepends="go docker"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/$pkgver/release.tar.gz"
builddir="$srcdir/src/github.com/awslabs/amazon-ecr-credential-helper/ecr-login"
options="net"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
prepare() {
default_prepare
......@@ -20,13 +23,13 @@ prepare() {
}
build() {
GOFLAGS="$GOFLAGS -modcacherw" GOPATH="$srcdir" go build -v -o bin/$pkgname \
GOPATH="$srcdir" go build -v -o bin/$pkgname \
-ldflags "-s -X github.com/awslabs/amazon-ecr-credential-helper/ecr-login/version.Version=$pkgver" \
$builddir/cli/docker-credential-ecr-login
}
check() {
GOFLAGS="$GOFLAGS -modcacherw" GOPATH="$srcdir" go test -v -timeout 30s -short
GOPATH="$srcdir" go test -v -timeout 30s -short
}
package() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment