Skip to content

Commit 688b995

Browse files
committed
Address review, start accomodating bzlmod.
1 parent b82ffd4 commit 688b995

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,7 @@ javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/auto
7474

7575
# Auto-generated modeling for Python
7676
python/ql/lib/semmle/python/frameworks/data/internal/subclass-capture/*.yml linguist-generated=true
77+
78+
# auto-generated bazel lock file
79+
ruby/extractor/cargo-bazel-lock.json linguist-generated=true
80+
ruby/extractor/cargo-bazel-lock.json -merge

ruby/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
load("@//:dist.bzl", "dist", "pack_zip")
2-
load("@ql//:defs.bzl", "codeql_platform")
31
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files")
2+
load("@semmle_code//:dist.bzl", "dist", "pack_zip")
3+
load("//:defs.bzl", "codeql_platform")
44

55
package(default_visibility = ["//visibility:public"])
66

ruby/extractor/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("@//:common.bzl", "codeql_rust_binary")
21
load("@ruby_deps//:defs.bzl", "aliases", "all_crate_deps")
2+
load("@semmle_code//:common.bzl", "codeql_rust_binary")
33

44
codeql_rust_binary(
55
name = "extractor",

ruby/extractor/Cargo.toml

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ version = "0.1.0"
55
authors = ["GitHub"]
66
edition = "2018"
77

8-
# When changing/updating these, the `Cargo.Bazel.lock` file has to be regenerated.
9-
# Check out the documentation at https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies
10-
# for how to do so. The bazel repository for the ruby extractor is called `ruby_extractor_crate_index`,
11-
# and instead of calling `bazel sync`, `./build --bazel sync` should be used instead, to always use the correct bazel version.
12-
# In the future, the hope is to move this handling of the dependencies entirely into the `codeql` submodule,
8+
# When changing/updating these, the `cargo-bazel-lock.json` file has to be regenerated.
9+
# Run `CARGO_BAZEL_REPIN=true CARGO_BAZEL_REPIN_ONLY=ruby_deps ./build --bazel sync --only=ruby_deps`
10+
# in the `semmle-code` repository to do so.
11+
# For more information, check out the documentation at
12+
# https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies
13+
# In the future, the hope is to move this handling of the dependencies entirely into the `codeql` repository,
1314
# but that depends on `rules_rust` being fully compatible with bzlmod, which they aren't yet
1415
# (c.f. https://github.com/bazelbuild/rules_rust/issues/2452).
1516
# Warning: The process takes >5min on my M1 mac, so do wait for a while.

ruby/extractor/Cargo.Bazel.lock renamed to ruby/extractor/cargo-bazel-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ruby/tools/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@//:dist.bzl", "pack_zip")
1+
load("@semmle_code//:dist.bzl", "pack_zip")
22

33
pack_zip(
44
name = "tools",

0 commit comments

Comments
 (0)