Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zig build: allow to choose "lazy mode" for fetching process #19975

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BratishkaErik
Copy link
Contributor

--fetch flag now has additional optional parameter, which specifies how lazy dependencies should be fetched:

  • lazy — lazy dependencies are fetched only if they are required for current build configuration to work. Default and works same as old --fetch flag.
  • all — lazy dependencies are always fetched. If --system flag is used after that, it's guaranteed that any build configuration will not require additional download of dependencies during build. Helpful for distro packagers and CI systems: ability to fetch only needed dependencies #14597 (comment)

If none is passed, behaviour is same as if lazy was passed.

`--fetch` flag now has additional optional parameter, which specifies
how lazy dependencies should be fetched:
 * `lazy` — lazy dependencies are fetched only if they are required
   for current build configuration to work. Default and works same
   as old `--fetch` flag.
 * `all` — lazy dependencies are always fetched. If `--system` flag
   is used after that, it's guaranteed that **any** build configuration
   will not require additional download of dependencies during build.
   Helpful for distro packagers and CI systems:
   ziglang#14597 (comment)

If none is passed, behaviour is same as if `lazy` was passed.

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
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.

None yet

1 participant