File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -844,15 +844,20 @@ INFO: {} file has changed""".format(pnpm_lock_relative_path))
844844
845845################################################################################
846846def _fail_if_frozen_pnpm_lock (rctx , state ):
847+ repo_reference_symbol = "@"
848+ if rctx .attr .bzlmod :
849+ repo_reference_symbol = "@@"
850+
847851 if RULES_JS_FROZEN_PNPM_LOCK_ENV in rctx .os .environ .keys () and rctx .os .environ [RULES_JS_FROZEN_PNPM_LOCK_ENV ]:
848852 fail ("""
849853
850854ERROR: `{action_cache}` is out of date. `{pnpm_lock}` may require an update. To update run,
851855
852- bazel run @ {rctx_name}//:sync
856+ bazel run {repo_reference_symbol} {rctx_name}//:sync
853857
854858""" .format (
855859 action_cache = state .label_store .relative_path ("action_cache" ),
856860 pnpm_lock = state .label_store .relative_path ("pnpm_lock" ),
861+ repo_reference_symbol = repo_reference_symbol ,
857862 rctx_name = rctx .name ,
858863 ))
You can’t perform that action at this time.
0 commit comments