-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a build setting
--//setting:stamp_manifest
to disable Target-La…
…bel stamping. (#355) * Add a build setting to disable Target-Label stamping. * Don't use custom COURSIER_CACHE * Try bazelrc setting with --repo_env=COURSIER_CACHe * Delete .bazelrc * Disable it by default * Tag diff_manifest_test as manual, and disable jar stamping by default
- Loading branch information
Showing
5 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
load("//settings:stamp_manifest.bzl", "stamp_manifest") | ||
|
||
package( | ||
default_visibility = ["//visibility:public"], | ||
) | ||
|
||
stamp_manifest( | ||
name = "stamp_manifest", | ||
build_setting_default = False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
StampManifestProvider = provider(fields = ['stamp_enabled']) | ||
|
||
def _impl(ctx): | ||
return StampManifestProvider(stamp_enabled = ctx.build_setting_value) | ||
|
||
stamp_manifest = rule( | ||
implementation = _impl, | ||
build_setting = config.bool(flag = True) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters