Skip to content

Conversation

@gridbugs
Copy link
Collaborator

@gridbugs gridbugs commented Nov 25, 2025

Contributes to #10508

Adds a [Network_cap.t] type which must be passed to the low-level functions which require network access, and should only be created at the "edge", either in a command or a rule. This will make it harder to accidentally add a requirement on network access to a code path that previously did not require network access, which will become important for maintaining an offline mode for Dune where it avoids updating package repositories and downloading files where possible.

Adds a [Network_cap.t] type which must be passed to the low-level
functions which require network access, and should only be created at
the "edge", either in a command or a rule. This will make it harder to
accidentally add a requirement on network access to a code path that
previously did not require network access, which will become important
for maintaining an offline mode for Dune where it avoids updating
package repositories and downloading files where possible.

Signed-off-by: Stephen Sherratt <[email protected]>
@rgrinberg
Copy link
Member

Before this PR is considered, can we see where this parameter is used for something? Otherwise, this is a rather large change for something that is fairly niche. I'd like to see if there's a less intrusive way to accomplish this.

@gridbugs gridbugs marked this pull request as draft November 26, 2025 01:21
@gridbugs
Copy link
Collaborator Author

Converting to a draft while I flesh out this idea.

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.

2 participants