Skip to content

Commit 17c0be5

Browse files
authored
Merge pull request #308 from maxmind/greg/add-go-mod-version-check
Add check to verify that tag matches go.mod
2 parents 7a94b1f + 505ea88 commit 17c0be5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dev-bin/release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ fi
3737

3838
tag="v$version"
3939

40+
if ! grep -q "^module github.com/maxmind/geoipupdate/$(echo "$tag" |cut -d . -f 1)" go.mod; then
41+
echo "Tag version does not match go.mod version!"
42+
exit 1;
43+
fi
44+
4045
perl -pi -e "s/(?<=Version = \").+?(?=\")/$version/g" internal/vars/version.go
4146

4247
echo $'\nRelease notes:'

0 commit comments

Comments
 (0)