Skip to content

Conversation

@octocamocoder47
Copy link

update README and JSON options for Zig version selection

@octocamocoder47
Copy link
Author

#159

"proposals": [
"latest",
"0.10.0"
"lts",
Copy link
Member

@koralowiec koralowiec Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"lts",
"latest",
"stable",

"0.12.1"
],
"default": "latest",
"default": "lts",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"default": "lts",
"default": "stable",

then
# for latest we download the latest *release* version
DOWNLOAD_URL=$(curl -sSL $INDEX_URL | jq -r 'to_entries[0].value."'"$ARCH"'-linux".tarball')
elif [[ "$ZIG_VERSION" == "lts" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
elif [[ "$ZIG_VERSION" == "lts" ]]; then
elif [[ "$ZIG_VERSION" == "stable" ]]; then

Comment on lines 18 to +20
| version | Select the Zig version you would like to install | string | latest |
| latest | This is latest version of zig which is still not released yet. Under development for developers use. You can use it as Beta release and post any issues on zig github repo.|
| lts | This is the Last released version of zig which is more stable and efficient.|
Copy link
Member

@koralowiec koralowiec Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are keeping a single option here, you can reuse its description from src/zig/devcontainer-feature.json. Following example change from this comment:

Suggested change
| version | Select the Zig version you would like to install | string | latest |
| latest | This is latest version of zig which is still not released yet. Under development for developers use. You can use it as Beta release and post any issues on zig github repo.|
| lts | This is the Last released version of zig which is more stable and efficient.|
| version | Select the Zig version you would like to install. `stable` installs the latest stable release, while `latest` installs the most recent version (which may be a development release | string | stable |

],
"default": "latest",
"default": "lts",
"description": "Select the Zig version you would like to install"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We provide more context here, for example:

Suggested change
"description": "Select the Zig version you would like to install"
"description": "Select the Zig version you would like to install. `stable` installs the latest stable release, while `latest` installs the most recent version (which may be a development release)"

Copy link
Member

@koralowiec koralowiec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heyo!

I left few change requests. Generally, I don't see any info about Zig having LTS versions, so using lts may be misleading. I would propose to use stable instead

{
"name": "Zig (via ziglang.org)",
"id": "zig",
"version": "1.1.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version bump will be required

Suggested change
"version": "1.1.3",

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