Skip to content

Commit

Permalink
Update manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Dec 5, 2024
1 parent 6c6d6f0 commit 942e367
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions examples/crate_universe_local_path/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ crate = use_extension(
crate.from_cargo(
name = "bzlmod_crates_from_cargo_workspace",
cargo_lockfile = "//crates_from_workspace:Cargo.lock",
manifests = [
"//crates_from_workspace:Cargo.toml",
],
manifests = ["//crates_from_workspace:Cargo.toml"],
)
use_repo(crate, "bzlmod_crates_from_cargo_workspace")
6 changes: 6 additions & 0 deletions examples/crate_universe_local_path/vendor_lazy_static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ elif [[ "$#" -eq 1 ]]; then
path_dep_path="$1"
copy_to="crates_from_workspace/$1"
mkdir -p "${copy_to}"
sed_i=(sed -i)
if [[ "$(uname)" == "Darwin" ]]; then
sed_i=(sed -i '')
fi
"${sed_i[@]}" -e 's#manifests = \["//crates_from_workspace:Cargo\.toml"\],#manifests = ["//crates_from_workspace:Cargo.toml", "//crates_from_workspace:'"$1"'/Cargo.toml"],#g' WORKSPACE.bazel
"${sed_i[@]}" -e 's#manifests = \["//crates_from_workspace:Cargo\.toml"\],#manifests = ["//crates_from_workspace:Cargo.toml", "//crates_from_workspace:'"$1"'/Cargo.toml"],#g' MODULE.bazel
else
echo >&2 "Usage: $0 [/path/to/copy/to]"
echo >&2 "If no arg is passed, a tempdir will be created"
Expand Down

0 comments on commit 942e367

Please sign in to comment.