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

Include nightly versions #4

Open
codethief opened this issue Mar 7, 2023 · 6 comments
Open

Include nightly versions #4

codethief opened this issue Mar 7, 2023 · 6 comments

Comments

@codethief
Copy link

The Bash script retrieves https://ziglang.org/download/index.json, which lists the current v11.0-dev.* nightly versions. However, when I run asdf list all zig I only see the stable versions (0.1.1 through 0.10.1).

Could this be changed to also include nightly versions?

Unfortunately, I can't really tell where in the script the filtering happens, otherwise I'd change it myself.

@jhcl
Copy link

jhcl commented Mar 21, 2023

When I run the same command (asdf list all zig) I see 0.2.0 through 0.10.1 and master.
asdf install zig master gives me version 0.11.0-dev.1884+2641feb9b.

@neodon
Copy link

neodon commented Mar 29, 2023

I like being able to easily install the latest nightly build version with asdf install zig master, so thank you for adding that.

I think it would still be useful to have individual nightly build versions installable with asdf. For some additional context, the recommended way to use zig (aside from evaluation) is to use a nightly build.

Since nightly builds can change a lot, and some can have major problems, it makes sense to be able to pin specific nightly build versions for different projects. I'm currently doing this with vendoring, but I'd much rather use asdf and .tool-versions.

One potential issue is that adding nightly build versions to this plugin would result in a long version list after a while, since there will be one for each day. I'm not sure how much of a problem this could become, depending on when zig starts using a better release process.

Additional thoughts? Are you open to a pull request?

@jhcl
Copy link

jhcl commented Mar 29, 2023

  • I am not the maintainer, just a passer-by. It would be nice to have even more versioning options for such a fast moving target but I don't think asdf tracks github commits, just github labels (see comment in Failure to detect latest master release? cheetah/asdf-zig#5).
  • As far as I know master is the nightly build.
  • When i do a asdf plugin list-all | grep zig I get a reference to https://github.com/cheetah/asdf-zig.git. So I'm not sure we are discussing this in the correct repository. Perhaps the repo owner can enlighten us.

@neodon
Copy link

neodon commented Mar 29, 2023

Pardon my confusion in assuming you were the repo owner. Also good callout on what repo asdf is actually using for zig.

@tobyhinloopen
Copy link

tobyhinloopen commented Apr 12, 2023

yeah i wish master was included in list-all. Eventually I found out you can just install master. The list-all function uses only "numeric-like" versions from https://ziglang.org/download/index.json , but you can actually install any version from that JSON page.

  "master": { // << what you need to install
    "version": "0.11.0-dev.2546+cb54e9a3c", // << what you get

Source:

We have a HTTP server now 🥳

https://ziglang.org/documentation/master/std/#A;std:http.Server

@chenrui333
Copy link

Any luck with this thread?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants