We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6bc78 commit 1140a06Copy full SHA for 1140a06
python/features.bzl
@@ -13,9 +13,11 @@
13
# limitations under the License.
14
"""Allows detecting of rules_python features that aren't easily detected."""
15
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
18
_VERSION_PRIVATE = "$Format:%(describe:tags=true)$"
19
20
features = struct(
- version = _VERSION_PRIVATE if '$Format' not in _VERSION_PRIVATE else ''
21
+ version = _VERSION_PRIVATE if "$Format" not in _VERSION_PRIVATE else "",
22
precompile = True,
23
)
0 commit comments