Add .git to .bazelignore (#3463)
This commit is contained in:
10
.bazelignore
10
.bazelignore
@@ -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
|
||||
|
||||
10
BUILD.bazel
10
BUILD.bazel
@@ -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(
|
||||
|
||||
@@ -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 $@
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user