File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1515
1616requirements_in = os .path .relpath (sys .argv .pop (1 ))
1717requirements_txt = sys .argv .pop (1 )
18- update_target_name = sys .argv .pop (1 )
18+ update_target_label = sys .argv .pop (1 )
1919
2020# Before loading click, set the locale for its parser.
2121# If it leaks through to the system setting, it may fail:
6565# $(rootpath) in the workspace root gives ./requirements.in
6666if update_target_pkg == "." :
6767 update_target_pkg = ""
68- update_command = os .getenv ("CUSTOM_COMPILE_COMMAND" ) or "bazel run //%s:%s" % (
69- update_target_pkg ,
70- update_target_name ,
68+ update_command = os .getenv ("CUSTOM_COMPILE_COMMAND" ) or "bazel run %s" % (
69+ update_target_label ,
7170)
7271
7372os .environ ["CUSTOM_COMPILE_COMMAND" ] = update_command
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def compile_pip_requirements(
5454 args = [
5555 loc % requirements_in ,
5656 loc % requirements_txt ,
57- name + " .update" ,
57+ "//%s:%s .update" % ( native . package_name (), name ) ,
5858 ] + extra_args
5959
6060 deps = [
You can’t perform that action at this time.
0 commit comments