Skip to content

Commit 1140a06

Browse files
committed
address review comments
1 parent 9f6bc78 commit 1140a06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/features.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
# limitations under the License.
1414
"""Allows detecting of rules_python features that aren't easily detected."""
1515

16+
# This is a magic string expanded by `git archive`, as set by `.gitattributes`
17+
# See https://git-scm.com/docs/git-archive/2.29.0#Documentation/git-archive.txt-export-subst
1618
_VERSION_PRIVATE = "$Format:%(describe:tags=true)$"
1719

1820
features = struct(
19-
version = _VERSION_PRIVATE if '$Format' not in _VERSION_PRIVATE else ''
21+
version = _VERSION_PRIVATE if "$Format" not in _VERSION_PRIVATE else "",
2022
precompile = True,
2123
)

0 commit comments

Comments
 (0)