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

boulder: Consider adding a separate fetch phase #264

Open
ermo opened this issue Jul 5, 2024 · 0 comments
Open

boulder: Consider adding a separate fetch phase #264

ermo opened this issue Jul 5, 2024 · 0 comments
Labels
type: feature A new functionality to implement.

Comments

@ermo
Copy link
Member

ermo commented Jul 5, 2024

Modern languages typically come with their own package managers.

To make it possible to fetch external modules per a controlled set of dependency specifications (cargo.lock, go.mod etc.), perhaps it would make sense to offer an extra fetch phase where networking is implicitly allowed, whilst then turning off networking for all remaining phases?

I imagine that this would be a fully backwards compatible change, given empty phases are simply skipped.

Example:

# (...)
networking: no
fetch: |
    %cargo_fetch # or %go_get or (...)
# no setup phase necessary here
build: |
    %cargo_build
install: |
    %cargo_install

In addition, having a separate fetch phase would also enable us to split that phase out timing wise in the end-of-build overview (thanks to Ikey for pointing this out).

@ermo ermo added the type: feature A new functionality to implement. label Jul 5, 2024
@ermo ermo added this to the zz -- deferred milestone Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new functionality to implement.
Projects
Development

No branches or pull requests

1 participant