File tree Expand file tree Collapse file tree 5 files changed +292
-208
lines changed Expand file tree Collapse file tree 5 files changed +292
-208
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,5 @@ codeql_pack(
33
33
"//javascript/extractor:tools-extractor" ,
34
34
"//javascript/resources" ,
35
35
],
36
- visibility = ["//visibility:public" ],
37
36
zips = {"//javascript/extractor/lib/typescript" : "tools" },
38
37
)
Original file line number Diff line number Diff line change 21
21
help = "Desination directory, relative to `--build-file`" )
22
22
parser .add_argument ("--pkg-install-script" , required = True ,
23
23
help = "The wrapped `pkg_install` installation script rlocation" )
24
- parser .add_argument ("--build-file" , required = True ,
24
+ parser .add_argument ("--build-file" ,
25
25
help = "BUILD.bazel rlocation relative to which the installation should take place" )
26
26
parser .add_argument ("--ripunzip" ,
27
27
help = "ripunzip executable rlocation. Must be provided if `--zip-manifest` is." )
33
33
if opts .zip_manifest and not opts .ripunzip :
34
34
parser .error ("Provide `--ripunzip` when specifying `--zip-manifest`" )
35
35
36
- build_file = runfiles .Rlocation (opts .build_file )
36
+ if opts .build_file :
37
+ build_file = runfiles .Rlocation (opts .build_file )
38
+ destdir = pathlib .Path (build_file ).resolve ().parent / opts .destdir
39
+ else :
40
+ destdir = pathlib .Path (opts .destdir )
41
+ assert destdir .is_absolute (), "Provide `--build-file` to resolve destination directory"
37
42
script = runfiles .Rlocation (opts .pkg_install_script )
38
- destdir = pathlib .Path (build_file ).resolve ().parent / opts .destdir
39
43
40
44
if destdir .exists () and opts .cleanup :
41
45
shutil .rmtree (destdir )
You can’t perform that action at this time.
0 commit comments