On Wed, Mar 15, 2023 at 7:49 AM Frederic Martinsons <[email protected]> wrote: > > From: Frederic Martinsons <[email protected]> > > There should not be any network access during the build step so > specify this explicitely to cargo. > This will allow better error message, e.g: > > | Caused by: > | can't checkout from 'ssh://git@.../fmartinsons/zbus-git-dep-test.git': you > are in the offline mode (--offline) > > Instead of > > | Updating git repository `ssh://git@.../fmartinsons/zbus-git-dep-test.git` > | warning: spurious network error (2 tries remaining): failed to resolve > address for gitlab.com: Temporary failure in name resolution;class=Net (12) > > Signed-off-by: Frederic Martinsons <[email protected]>
Tested-by: Alex Kiernan <[email protected]> > --- > meta/classes-recipe/cargo.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/classes-recipe/cargo.bbclass > b/meta/classes-recipe/cargo.bbclass > index 93e185f2c9..7a8cc1e751 100644 > --- a/meta/classes-recipe/cargo.bbclass > +++ b/meta/classes-recipe/cargo.bbclass > @@ -39,7 +39,7 @@ MANIFEST_PATH ??= "${S}/${CARGO_SRC_DIR}/Cargo.toml" > > RUSTFLAGS ??= "" > BUILD_MODE = "${@['--release', ''][d.getVar('DEBUG_BUILD') == '1']}" > -CARGO_BUILD_FLAGS = "-v --target ${RUST_HOST_SYS} ${BUILD_MODE} > --manifest-path=${MANIFEST_PATH}" > +CARGO_BUILD_FLAGS = "-v --offline --target ${RUST_HOST_SYS} ${BUILD_MODE} > --manifest-path=${MANIFEST_PATH}" > > # This is based on the content of CARGO_BUILD_FLAGS and generally will need > to > # change if CARGO_BUILD_FLAGS changes. > -- > 2.34.1 > > > > -- Alex Kiernan
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#178580): https://lists.openembedded.org/g/openembedded-core/message/178580 Mute This Topic: https://lists.openembedded.org/mt/97622913/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
