-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Expand zig fetch usage help doc to explain URL #22850
Conversation
The current zig fetch help docs tell the user to specify a package's URL, but it's unclear what the URL should be. This change expands the help output to explain what URLs the zig fetch command can handle and provides examples of valid URLs. Related: ziglang#20096
Co-authored-by: Andrew Kelley <[email protected]>
What is the format for actual git urls (so not https?) i.e this doesnt work:
Is this a documentation issue, or regular non http git is not supported? |
Just testing, these dont work either:
Oh, I just found #14295 Should the documentation mention that only https is supported? |
I'm writing the documentation based on inspecting the code and manually testing, as I wasn't involved in the implementation, but I believe that Lines 911 to 1047 in 4162f40
|
This is definitely an improvement. I am just brainstorming out loud and wondering if making it explicit that git+ssh is not supported might save some people in the future some confusion. I read ‘git+https’ as meaning the url format works, rather than only the http/https versions. Especially since it looks like git+ssh support might be a year away? |
I feel a bit bad that my comment might slow down just pushing this forward. I only landed here because of a google search to find out why this stuff is not working. Perhaps at the end of the list a comment could be added.
|
A git bundle file seems to be the more accurate term, as it's what git uses in its documentation: https://git-scm.com/docs/git-bundle
I don't think we should add that, as there are a lot of protocols zig fetch currently does not support but might in the future. I'd hope that the list of supported URL types should give the user enough information about which URLs |
Thanks! |
The current zig fetch help docs tell the user to specify a package's URL, but it's unclear what the URL should be.
This change expands the help output to explain what URLs the zig fetch command can handle and provides examples of valid URLs.
Related: #20096