Skip to content

Conversation

@alatiera
Copy link
Contributor

By default network access inside the build sandbox is disabled, however meson defaults into trying to initialize fallbacks and attempt to download them, returning a potentially misleading error message.

Setting wrap-mode to nodownload will instruct meson to not try to use the network to fetch any resources and only the pre-existing checkouts will be taken into account. This matches both the default network permission and the design of flatpak-builder for bundling and staging all the sources ahead of time.

Side effect is that it makes it slightly harder for projects to use the network access at build time, is they also have to edit their meson setup arguments to change the wrap-mode.

@alatiera alatiera force-pushed the alatiera/meson-nodownload branch 3 times, most recently from d386805 to aa3f27f Compare May 20, 2025 20:54
By default network access inside the build sandbox is
disabled, however meson defaults into trying to initialize
fallbacks and attempt to download them, returning a
potentially misleading error message.

Setting wrap-mode to nodownload will instruct meson to
not try to use the network to fetch any resources and
only the pre-existing checkouts will be taken into account.
This matches both the default network permission and the
design of flatpak-builder for bundling and staging all
the sources ahead of time.

Side effect is that it makes it slightly harder for
projects to use the network access at build time, is
they also have to edit their meson setup arguments
to change the wrap-mode.
@alatiera alatiera force-pushed the alatiera/meson-nodownload branch from aa3f27f to 59554ec Compare May 20, 2025 20:56
@matthiasclasen
Copy link
Contributor

Makes sense to me, thanks

* ahead of time.
*
* Side effect is that it makes it slightly harder for projects to use the
* network access at build time, is they also have to edit their meson setup
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* network access at build time, is they also have to edit their meson setup
* network access at build time, as they also have to edit their meson setup

@bbhtt
Copy link
Contributor

bbhtt commented Aug 3, 2025

as is it will break ci uses cases of flatpak-builder where often the developer workflow is to build with network access. so probably this should not be set when the build sandbox has network access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants