Skip to content

Commit

Permalink
Merge pull request #308 from maxmind/greg/add-go-mod-version-check
Browse files Browse the repository at this point in the history
Add check to verify that tag matches go.mod
  • Loading branch information
NajiObeid authored Apr 10, 2024
2 parents 7a94b1f + 505ea88 commit 17c0be5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ fi

tag="v$version"

if ! grep -q "^module github.com/maxmind/geoipupdate/$(echo "$tag" |cut -d . -f 1)" go.mod; then
echo "Tag version does not match go.mod version!"
exit 1;
fi

perl -pi -e "s/(?<=Version = \").+?(?=\")/$version/g" internal/vars/version.go

echo $'\nRelease notes:'
Expand Down

0 comments on commit 17c0be5

Please sign in to comment.