Hi Richard,

Please correct me if am wrong.
  BB_NO_NETWORK:layer-core = "1"
would work for the case where SRCREV is set to a floating
branch or tag, since _lsremote() calls check_network_access()
which raises NetworkAccess when BB_NO_NETWORK is set.

However for the case where SRCREV is completely missing the
crash happens earlier in srcrev_internal_helper() which raises
FetchError before latest_revision() is even called so
BB_NO_NETWORK wouldn’t catch that case.


Best regards,
Sai Sneha

On Tue, 9 Jun 2026 at 3:16 PM, Richard Purdie <
[email protected]> wrote:

> On Tue, 2026-06-09 at 15:13 +0530, Sai Sneha wrote:
> > Hi Richard,
> >
> > That makes much more sense, thank you. Setting
> > BB_FETCH_REQUIRE_DETERMINISM as a per-layer flag in OE-core and
> > having BitBake enforce it is a cleaner approach than catching
> > FetchError in setup_revisions().
> >
> > could you please point me to where in BitBake the network access
> > would
> > be triggered so I know the right place to check this flag? I
> > believe it would be in latest_revision() or srcrev_internal_helper(),
> > but I want to confirm before implementing.
>
> Thinking more about this, does:
>
> BB_NO_NETWORK:layer-core = "1"
>
> already do what we need?
>
> Cheers,
>
> Richard
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#238287): 
https://lists.openembedded.org/g/openembedded-core/message/238287
Mute This Topic: https://lists.openembedded.org/mt/119719972/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to