Skip to content

Commit

Permalink
fix(tag_all_contrib.sh): phase 2 must use the version variable, don't…
Browse files Browse the repository at this point in the history
… run go mod tidy and skip main contribs
  • Loading branch information
darccio committed Nov 27, 2024
1 parent fe886dd commit 53971d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// Tag specifies the current release tag. It needs to be manually
// updated. A test checks that the value of Tag never points to a
// git tag that is older than HEAD.
const Tag = "v2.0.0-beta.11"
const Tag = "v2.0.0-rc.1"

// Dissected version number. Filled during init()
var (
Expand Down
9 changes: 7 additions & 2 deletions tools/tag_all_contribs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

version=v2.0.0-rc.1
phase=1
phase=2

if [ $phase -eq 0 ]; then
# Tag the main repo
Expand All @@ -27,9 +27,14 @@ if [ $phase -eq 2 ]; then
# Tag all contribs
find ./contrib -type f -name go.mod | while read f; do
contrib=$(dirname $f)
if [ "$contrib" == "./contrib/net/http" ]; then
continue
fi
if [ "$contrib" == "./contrib/database/sql" ]; then
continue
fi
cd $contrib && pwd
git tag $(echo $contrib | sed 's#\.\/##')/$version
go mod tidy
git push --tags
cd -
done
Expand Down

0 comments on commit 53971d2

Please sign in to comment.