Add .git to .bazelignore (#3463)

This commit is contained in:
Bart Louwers
2025-05-13 16:39:08 +02:00
committed by GitHub
parent 1ab368f065
commit 9ddd0a3f0e
6 changed files with 3 additions and 25 deletions

View File

@@ -1,10 +1,4 @@
# ignore .git, but make sure we can get commit hash
!.git/HEAD
!.git/refs
!.git/refs/heads
!.git/packed-refs
.git/*
.git
node_modules
bazel-out
bazel-bin
@@ -13,3 +7,5 @@ bazel-testlogs
.idea
.vscode
.cxx
build-*
build

View File

@@ -148,16 +148,6 @@ cc_library(
}),
)
genrule(
name = "git_hash",
outs = ["hash"],
cmd = """
git rev-parse HEAD > $@
""",
local = True,
visibility = ["//visibility:public"],
)
# Selects the rendering implementation to utilize in the core
string_flag(

View File

@@ -5,14 +5,12 @@ def info_plist(name, base_info_plist, out, **kwargs):
name = name,
srcs = [
base_info_plist,
"//:git_hash",
],
outs = [
out,
],
cmd = ("""
cp $(location {}) $@
plutil -replace MLNCommitHash -string $$(cat $(location //:git_hash)) $@
token=\"""" + API_KEY + """\"
plutil -replace MLNApiKey -string $$token $@

View File

@@ -14,8 +14,6 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>15256</string>
<key>MLNCommitHash</key>
<string>$(CURRENT_COMMIT_HASH)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>

View File

@@ -18,8 +18,6 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>15256</string>
<key>MLNCommitHash</key>
<string>$(CURRENT_COMMIT_HASH)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>

View File

@@ -20,8 +20,6 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>15256</string>
<key>MLNCommitHash</key>
<string>$(CURRENT_COMMIT_HASH)</string>
<key>MLNSemanticVersionString</key>
<string>$(CURRENT_SEMANTIC_VERSION)</string>
</dict>