Skip to content

Commit

Permalink
chore(make): add go mod tidy in samples target
Browse files Browse the repository at this point in the history
  • Loading branch information
elmernocon committed Apr 16, 2024
1 parent adbced0 commit 09e3460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ samples:
find ./samples -type f -name main.go -exec dirname {} \; | while read DIRECTORY; do \
echo "# $$DIRECTORY"; \
docker run -t --rm -u $$(id -u):$$(id -g) -v $$(pwd):/data/ -w /data/ -e GOCACHE=/data/.cache/go-build $(GOLANG_DOCKER_IMAGE) \
sh -c "cd '$$DIRECTORY' && go build -o bin/" || touch samples.err; \
sh -c "cd '$$DIRECTORY' && go mod tidy && go build -o bin/" || touch samples.err; \
done
[ ! -f samples.err ]

Expand Down

0 comments on commit 09e3460

Please sign in to comment.