]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cargo.bbclass: use offline mode for building
authorFrederic Martinsons <frederic.martinsons@gmail.com>
Wed, 15 Mar 2023 07:48:51 +0000 (08:48 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 21 Mar 2023 16:53:16 +0000 (06:53 -1000)
commitbad6361b2f90e7916e344148976a968559375eda
tree2f26a67a36ee5206b27e41f94e35b6f7efeeb976
parent726bd3b50209660151be7743533bddaa2d0da360
cargo.bbclass: use offline mode for building

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 <frederic.martinsons@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8e9ec03c73e8c09e223d6f6cce297df363991350)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/cargo.bbclass