Skip to content

Commit

Permalink
refactor: invert the conditional for setting version (#515)
Browse files Browse the repository at this point in the history
This evaluates the same way, but tricks the parser in Publish-to-BCR app into skipping any replacements
  • Loading branch information
alexeagle authored Sep 6, 2023
1 parent f7a02f0 commit cd4293c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VERSION = "$Format:%(describe:tags=true)$"

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

Expand Down

0 comments on commit cd4293c

Please sign in to comment.