Skip to content

Commit 872567f

Browse files
committed
Set uid to avoid go build error in docker-run-release
1 parent 3c560dc commit 872567f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ docker-run-release: export pkg=/go/src/github.com/databus23/helm-diff
5151
docker-run-release:
5252
git checkout master
5353
git push
54-
docker run -it --rm -e GITHUB_TOKEN -v $(shell pwd):$(pkg) -w $(pkg) golang:1.19.8 make bootstrap release
54+
# uid needs to be set to avoid "error obtaining VCS status: exit status 128"
55+
docker run --user $(shell id -u) -it --rm -e GITHUB_TOKEN -v $(shell pwd):$(pkg) -w $(pkg) golang:1.19.8 make bootstrap release
5556

5657
.PHONY: dist
5758
dist: export COPYFILE_DISABLE=1 #teach OSX tar to not put ._* files in tar archive

0 commit comments

Comments
 (0)