Skip to content

Commit

Permalink
Bazel: force remote downloads on cargo updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Tranquilli committed Feb 25, 2025
1 parent d9ecb62 commit 97f4700
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion misc/bazel/3rdparty/update_py_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eu
WORKSPACE_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/../../.." &> /dev/null && pwd )

cd "$WORKSPACE_DIR"
time bazel run //misc/bazel/3rdparty:vendor_py_deps
time bazel run //misc/bazel/3rdparty:vendor_py_deps --remote_download_all
# no idea why this is necessary, see https://github.com/bazelbuild/rules_rust/issues/3255
python3 "$WORKSPACE_DIR/misc/bazel/3rdparty/patch_defs.py" misc/bazel/3rdparty/py_deps/defs.bzl
bazel mod tidy
2 changes: 1 addition & 1 deletion misc/bazel/3rdparty/update_tree_sitter_extractors_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eu
WORKSPACE_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/../../.." &> /dev/null && pwd )

cd "$WORKSPACE_DIR"
time bazel run //misc/bazel/3rdparty:vendor_tree_sitter_extractors
time bazel run //misc/bazel/3rdparty:vendor_tree_sitter_extractors --remote_download_all

# we need access to this file in the rust extractor
echo 'exports_files(["rust.ungram"])' >> misc/bazel/3rdparty/tree_sitter_extractors_deps/BUILD.ra_ap_syntax-?.*.bazel
Expand Down

0 comments on commit 97f4700

Please sign in to comment.