diff --git a/.gitattributes b/.gitattributes index 229c2eaefea..37484ad742a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -74,3 +74,7 @@ javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/auto # Auto-generated modeling for Python python/ql/lib/semmle/python/frameworks/data/internal/subclass-capture/*.yml linguist-generated=true + +# auto-generated bazel lock file +ruby/extractor/cargo-bazel-lock.json linguist-generated=true +ruby/extractor/cargo-bazel-lock.json -merge diff --git a/ruby/BUILD.bazel b/ruby/BUILD.bazel index 64bba5f0efc..28cb046e3a6 100644 --- a/ruby/BUILD.bazel +++ b/ruby/BUILD.bazel @@ -1,6 +1,6 @@ -load("@//:dist.bzl", "dist", "pack_zip") -load("@ql//:defs.bzl", "codeql_platform") load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files") +load("@semmle_code//:dist.bzl", "dist", "pack_zip") +load("//:defs.bzl", "codeql_platform") package(default_visibility = ["//visibility:public"]) diff --git a/ruby/extractor/BUILD.bazel b/ruby/extractor/BUILD.bazel index 254424fc455..e859884085d 100644 --- a/ruby/extractor/BUILD.bazel +++ b/ruby/extractor/BUILD.bazel @@ -1,5 +1,5 @@ -load("@//:common.bzl", "codeql_rust_binary") load("@ruby_deps//:defs.bzl", "aliases", "all_crate_deps") +load("@semmle_code//:common.bzl", "codeql_rust_binary") codeql_rust_binary( name = "extractor", diff --git a/ruby/extractor/Cargo.toml b/ruby/extractor/Cargo.toml index c807de4b869..8bb8cd96dce 100644 --- a/ruby/extractor/Cargo.toml +++ b/ruby/extractor/Cargo.toml @@ -5,11 +5,12 @@ version = "0.1.0" authors = ["GitHub"] edition = "2018" -# When changing/updating these, the `Cargo.Bazel.lock` file has to be regenerated. -# Check out the documentation at https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies -# for how to do so. The bazel repository for the ruby extractor is called `ruby_extractor_crate_index`, -# and instead of calling `bazel sync`, `./build --bazel sync` should be used instead, to always use the correct bazel version. -# In the future, the hope is to move this handling of the dependencies entirely into the `codeql` submodule, +# When changing/updating these, the `cargo-bazel-lock.json` file has to be regenerated. +# Run `CARGO_BAZEL_REPIN=true CARGO_BAZEL_REPIN_ONLY=ruby_deps ./build --bazel sync --only=ruby_deps` +# in the `semmle-code` repository to do so. +# For more information, check out the documentation at +# https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies +# In the future, the hope is to move this handling of the dependencies entirely into the `codeql` repository, # but that depends on `rules_rust` being fully compatible with bzlmod, which they aren't yet # (c.f. https://github.com/bazelbuild/rules_rust/issues/2452). # Warning: The process takes >5min on my M1 mac, so do wait for a while. diff --git a/ruby/extractor/Cargo.Bazel.lock b/ruby/extractor/cargo-bazel-lock.json similarity index 99% rename from ruby/extractor/Cargo.Bazel.lock rename to ruby/extractor/cargo-bazel-lock.json index a2215f91967..4c32c4e0e09 100644 --- a/ruby/extractor/Cargo.Bazel.lock +++ b/ruby/extractor/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "967967dffe2fa38c30836aad92aad831f6eaab77aac76c0710d807bc80a9b2f6", + "checksum": "d560c06cf4f13182656a5daa708e6278b403dfc9075fc8539b046c3cf823e3a1", "crates": { "adler 1.0.2": { "name": "adler", diff --git a/ruby/tools/BUILD.bazel b/ruby/tools/BUILD.bazel index 76f86578880..4ec50830a43 100644 --- a/ruby/tools/BUILD.bazel +++ b/ruby/tools/BUILD.bazel @@ -1,4 +1,4 @@ -load("@//:dist.bzl", "pack_zip") +load("@semmle_code//:dist.bzl", "pack_zip") pack_zip( name = "tools",