build: don't use deprecated $(location) pre-declared variable (#36308)
$(location) is not recommended in the bazel docs as depending on context it will either return the value of $(execpath) or $(rootpath). rules_nodejs now supports $(rootpath) and $(execpath) in templated_args of nodejs_binary. PR Close #36308
This commit is contained in:

committed by
Alex Rickabaugh

parent
61e5ab4703
commit
c58e6ba13a
@ -23,8 +23,8 @@ genrule(
|
||||
],
|
||||
outs = ["package.json"],
|
||||
cmd = """
|
||||
$(location //tools:inline-package-json-deps) $(location tmpl-package.json) \
|
||||
$(location //:package.json) $@
|
||||
$(execpath //tools:inline-package-json-deps) $(execpath tmpl-package.json) \
|
||||
$(execpath //:package.json) $@
|
||||
""",
|
||||
tools = ["//tools:inline-package-json-deps"],
|
||||
)
|
||||
|
Reference in New Issue
Block a user