diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-06-06 15:42:39 +0800 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-06-06 15:48:24 +0800 |
commit | af47301dd57499c05ad627d3a81048e192f14f81 (patch) | |
tree | f868f4ab750576da381bf99932dd523c982df1db /Mk/Uses/cargo.mk | |
parent | www/py-imdbpy: Mark DEPRECATED and set EXPIRATION_DATE to 2024-06-30 (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
Diffstat (limited to 'Mk/Uses/cargo.mk')
-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 |