Skip to content

Commit

Permalink
[BEAM-13119] Subdirectory prefix tag for Go SDK (#15881)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostluck committed Nov 3, 2021
1 parent 0d2b05b commit 82d94b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions release/src/main/scripts/choose_rc_commit.sh
Expand Up @@ -129,9 +129,17 @@ fi
fi
fi

# Tag for Go SDK.
# Go Modules defined in sub directories need to have a prefixed tag
# in order to get the matching version.
# See BEAM-13119 for context.
git tag -a "sdks/$RC_TAG" -m "Go SDK $RC_TAG" HEAD

# Primary tag for the repo.
git tag -a -m "$RC_TAG" "$RC_TAG" HEAD

if [[ "$PUSH_TAG" == yes ]] ; then
git push --follow-tags origin "sdks/$RC_TAG"
git push --follow-tags origin "$RC_TAG"
else
echo "Not pushing tag $RC_TAG. You can push it manually or run with --push-tag."
Expand Down
6 changes: 6 additions & 0 deletions website/www/site/content/en/contribute/release-guide.md
Expand Up @@ -1155,6 +1155,12 @@ Create and push a new signed tag for the released version by copying the tag for
gpg --output ~/doc.sig --sign ~/.bashrc
VERSION_TAG="v${RELEASE}"
# Tag for Go SDK
git tag -s "sdks/$VERSION_TAG" "$RC_TAG"
git push https://github.com/apache/beam "sdks/$VERSION_TAG"
# Tag for repo root.
git tag -s "$VERSION_TAG" "$RC_TAG"
git push https://github.com/apache/beam "$VERSION_TAG"
```
Expand Down

0 comments on commit 82d94b3

Please sign in to comment.