File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ def _crate_universe_resolve_impl(repository_ctx):
122
122
- The user then calls defs.bzl%pinned_rust_install().
123
123
124
124
Environment Variables:
125
- RULES_RUST_UPDATE_CRATE_UNIVERSE_LOCKFILE: Re-pin the lockfile if `true`.
125
+ REPIN: Re-pin the lockfile if set (useful for repinning deps from multiple rulesets).
126
+ RULES_RUST_REPIN: Re-pin the lockfile if set (useful for only repinning Rust deps).
126
127
RULES_RUST_CRATE_UNIVERSE_RESOLVER_URL_OVERRIDE: Override URL to use to download resolver binary - for local paths use a file:// URL.
127
128
"""
128
129
@@ -184,7 +185,8 @@ def _crate_universe_resolve_impl(repository_ctx):
184
185
if lockfile_path != None :
185
186
args .append ("--lockfile" )
186
187
str (args .append (lockfile_path ))
187
- if repository_ctx .os .environ .get ("RULES_RUST_UPDATE_CRATE_UNIVERSE_LOCKFILE" , "false" ) == "true" :
188
+ env_var_names = repository_ctx .os .environ .keys ()
189
+ if "RULES_RUST_REPIN" in env_var_names or "REPIN" in env_var_names :
188
190
args .append ("--update-lockfile" )
189
191
190
192
path_binaries = [
You can’t perform that action at this time.
0 commit comments