Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 884afdc

Browse filesBrowse files
authored
release: Fix release snippet (bazel-contrib#651)
We don't put a 'v' prefix on tags, so we shouldn't trim a character from the tag. Also bazel-contrib#650 had an incorrect url for stable SHAs 😓
1 parent 4f826d1 commit 884afdc
Copy full SHA for 884afdc

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎.github/workflows/workspace_snippet.sh

Copy file name to clipboardExpand all lines: .github/workflows/workspace_snippet.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -o errexit -o nounset -o pipefail
55
# Set by GH actions, see
66
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
77
TAG=${GITHUB_REF_NAME}
8-
PREFIX="rules_python-${TAG:1}"
8+
PREFIX="rules_python-${TAG}"
99
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')
1010

1111
cat << EOF
@@ -17,7 +17,7 @@ http_archive(
1717
name = "rules_python",
1818
sha256 = "${SHA}",
1919
strip_prefix = "${PREFIX}",
20-
url = "https://github.com/bazelbuild/rules_python/refs/tags/${TAG}.tar.gz",
20+
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/${TAG}.tar.gz",
2121
)
2222
\`\`\`
2323
EOF

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.