Skip to content

Commit

Permalink
Set uid to avoid go build error in docker-run-release
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed May 16, 2023
1 parent 3c560dc commit 872567f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ docker-run-release: export pkg=/go/src/github.com/databus23/helm-diff
docker-run-release:
git checkout master
git push
docker run -it --rm -e GITHUB_TOKEN -v $(shell pwd):$(pkg) -w $(pkg) golang:1.19.8 make bootstrap release
# uid needs to be set to avoid "error obtaining VCS status: exit status 128"
docker run --user $(shell id -u) -it --rm -e GITHUB_TOKEN -v $(shell pwd):$(pkg) -w $(pkg) golang:1.19.8 make bootstrap release

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

0 comments on commit 872567f

Please sign in to comment.