Skip to content

Commit 1461dea

Browse files
committed
builder-module: Add comment about why wrap-mode=nodownload is passed
1 parent b7b591a commit 1461dea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/builder-module.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,6 +2023,15 @@ builder_module_build_helper (BuilderModule *self,
20232023
{
20242024
/* Meson's setup command is now meson setup */
20252025
g_ptr_array_add (configure_args_arr, g_strdup ("setup"));
2026+
/*
2027+
* When project dependencies are absent, Meson by default tries
2028+
* to initialise fallbacks and attempts to download them over
2029+
* the network, returning a potentially misleading error
2030+
* message.
2031+
*
2032+
* Setting wrap-mode to `nodownload` instructs Meson to not try
2033+
* to use the network to fetch any resources
2034+
*/
20262035
if (!build_has_network)
20272036
g_ptr_array_add (configure_args_arr, g_strdup ("--wrap-mode=nodownload"));
20282037
}

0 commit comments

Comments
 (0)