Skip to content

Commit 2f53c0e

Browse files
committed
Bazel: fix codeql_pack installation on Windows
1 parent 6bbad22 commit 2f53c0e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor --host_cxxopt=/std:c
1919
startup --windows_enable_symlinks
2020
common --enable_runfiles
2121

22+
# with the above, we can avoid building python zips which is the default on windows as that's expensive
23+
build --nobuild_python_zip
24+
2225
common --registry=file:///%workspace%/misc/bazel/registry
2326
common --registry=https://bcr.bazel.build
2427

misc/bazel/internal/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
script = runfiles.Rlocation(opts.script)
2020
ripunzip = runfiles.Rlocation(opts.ripunzip)
2121
zip_manifests = [runfiles.Rlocation(z) for z in opts.zip_manifests]
22-
destdir = pathlib.Path(build_file).parent / opts.destdir
22+
destdir = pathlib.Path(build_file).resolve().parent / opts.destdir
2323

2424
if destdir.exists():
2525
shutil.rmtree(destdir)

0 commit comments

Comments
 (0)