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 a27d4f5 commit 6723544
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 7 additions & 4 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +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():
load_crat()
def deps(json = "cargo-bazel-lock.json"):
rules_rust_dependencies()
rust_register_toolchains(edition = "2021")
crate_universe_dependencies(bootstrap = True)
load_crat(json)

def load_crat():
def load_crat(json):
crates_repository(
name = "crate_index_protobuf",
cargo_lockfile = "@source_protobuf//:Cargo.lock",
lockfile = "@//:cargo-bazel-lock.json",
lockfile = "@//:"+json,
manifests = [
"@source_protobuf//:Cargo.toml"
]
Expand Down
5 changes: 2 additions & 3 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def repos():
git_repository,
name = "source_protobuf",
remote = "https://github.com/opicaud/pact-protobuf-plugin",
commit = "206f2c7b076211f4152029ac41935dd8f2747605",
shallow_since = "1684223959 +0200"

commit = "fe83f2688d5fa12e67e58b348b6a83806dd7e2af",
shallow_since = "1684236709 +0200"
)

0 comments on commit 6723544

Please sign in to comment.