Skip to content

Commit

Permalink
feat: being able to override cargo-bazel-lock name file
Browse files Browse the repository at this point in the history
  • Loading branch information
opicaud committed May 16, 2023
1 parent eb8c395 commit ec28067
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions rust/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_regi
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
load("@rules_rust//crate_universe:defs.bzl", "crates_repository", "crate")

def deps():
def deps(json = "cargo-bazel-lock.json"):
rules_rust_dependencies()
rust_register_toolchains(edition = "2021")
crate_universe_dependencies(bootstrap = True)
load_crat()
load_crat(json)

def load_crat():
def load_crat(json):
crates_repository(
name = "crate_index",
cargo_lockfile = "@source//:Cargo.lock",
lockfile = "@//:cargo-bazel-lock.json",
lockfile = "@//:"+json,
manifests = [
"@source//:Cargo.toml",
"@source//:pact_cli/Cargo.toml",
Expand Down
4 changes: 2 additions & 2 deletions rust/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def repos():
git_repository,
name = "source",
remote = "https://github.com/opicaud/pact-reference",
commit = "dd1097656f82ff99beadb3f01c70638bf581fc27",
shallow_since = "1676577520 +0100",
commit = "bce093ea41752b2d0e12e3b80cbcee34e8dfc74b",
shallow_since = "1684235942 +0200",
strip_prefix = "rust",
)

0 comments on commit ec28067

Please sign in to comment.