Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pull in https://github.com/bazel-contrib/rules-template/pull/93 #513

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

set -o errexit -o nounset -o pipefail

# Configuration for 'git archive'
# see https://git-scm.com/docs/git-archive/2.40.0#ATTRIBUTES
cat >.git/info/attributes <<EOF
# Substitution for the VERSION placeholder at the top of this file
MODULE.bazel export-subst
# Omit folders that users don't need, making the distribution artifact smaller
lib/tests export-ignore
EOF

# Set by GH actions, see
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
TAG=${GITHUB_REF_NAME}
Expand Down
5 changes: 4 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
"aspect-build/bazel-lib"

# replaced by export-subst during 'git archive'
VERSION = "$Format:%(describe:tags=true)$"

module(
name = "aspect_bazel_lib",
version = "0.0.0",
version = "0.0.0" if VERSION.startswith("$Format") else VERSION,
compatibility_level = 1,
)

Expand Down
Loading