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

Support fetching arbitrary files via package manager. #21677

Closed
VisenDev opened this issue Oct 12, 2024 · 1 comment
Closed

Support fetching arbitrary files via package manager. #21677

VisenDev opened this issue Oct 12, 2024 · 1 comment

Comments

@VisenDev
Copy link

Sometimes I've had the need to fetch a file with the zig package manager, but the package manager only supports compressed tarballs/zips and git repositories at the moment. I would be nice if we had a "simple" fetch mode where the package manager just fetched any file and stored it.

For example,

.my_arbitrary_file = .{
    .path = "raw_file+https://raw.githubusercontent.com/ziglang/zig/refs/heads/master/.mailmap",
    .hash = "HASH_HERE",
},

This fetch mode would effectively fetch the file in the same way wget or curl would fetch a file from a uri.

@xdBronch
Copy link
Contributor

duplicate of #17895

@alexrp alexrp added this to the unplanned milestone Oct 12, 2024
@alexrp alexrp closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2024
@andrewrk andrewrk removed this from the unplanned milestone Oct 12, 2024
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

No branches or pull requests

4 participants