diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-06-06 07:42:39 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-06-06 07:48:24 +0000 |
| commit | af47301dd57499c05ad627d3a81048e192f14f81 (patch) | |
| tree | f868f4ab750576da381bf99932dd523c982df1db | |
| parent | 5eba666835265073e48a84c73da32548bc3c77d0 (diff) | |
Mk/Uses/cargo.mk: Generate Cargo.lock in the right place
Sometimes we use non-default CARGO_CARGOTOML/CARGO_CARGOLOCK, that means the
Cargo.{toml,lock} are not under WRKSRC. Therefore, we change it from WRKSRC to
CARGO_CARGOTOML:H in order to generate Cargo.lock in the right place.
PR: 279495
Approved by: mikael
| -rw-r--r-- | Mk/Uses/cargo.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk index b6f9af00f11b..6083ca72564a 100644 --- a/Mk/Uses/cargo.mk +++ b/Mk/Uses/cargo.mk @@ -385,7 +385,7 @@ cargo-crates: cargo-crates-generate-lockfile cargo-crates-generate-lockfile: extract @if [ ! -r "${CARGO_CARGOLOCK}" ]; then \ ${ECHO_MSG} "===> ${CARGO_CARGOLOCK} not found. Trying to generate it..."; \ - cd ${WRKSRC}; ${_CARGO_RUN} generate-lockfile \ + cd ${CARGO_CARGOLOCK:H}; ${_CARGO_RUN} generate-lockfile \ --manifest-path ${CARGO_CARGOTOML} \ --verbose; \ fi |
