-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only run go mod vendor if git differences
- Loading branch information
1 parent
8d97b50
commit e44725a
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,11 @@ fi | |
|
||
pushd "build/$SHORT_NAME" | ||
|
||
GO111MODULE=on go mod vendor | ||
# go mod vendor is a very expensive operation. | ||
# If no changes, avoid running. | ||
if git diff-index --quiet HEAD --; then | ||
GO111MODULE=on go mod vendor | ||
fi | ||
|
||
# These config entries will set the "committer". | ||
git config --global user.email "[email protected]" | ||
|