Skip to content

chore: 更新 asdf 插件#328

Merged
jinzhongjia merged 1 commit into
mainfrom
asdf-zig-plugin
Jun 21, 2026
Merged

chore: 更新 asdf 插件#328
jinzhongjia merged 1 commit into
mainfrom
asdf-zig-plugin

Conversation

@jinzhongjia

Copy link
Copy Markdown
Member

No description provided.

@jinzhongjia jinzhongjia merged commit 7af7157 into main Jun 21, 2026
5 checks passed
@jinzhongjia jinzhongjia deleted the asdf-zig-plugin branch June 21, 2026 16:18

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the asdf command-line instructions in the environment installation guide to use the newer asdf command syntax. Feedback was provided to correct the global version setting command, as asdf set -u is invalid and should be changed to asdf set --home to avoid errors.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.


# 设置全局默认版本,会写到 $HOME/.tool-versions 文件
asdf global zig <version>
asdf set -u zig <version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

asdf 的新版本中,asdf set 命令用于设置版本。要设置全局默认版本(写入 $HOME/.tool-versions),正确的参数是 --home,而 asdf set 并没有 -u 选项。使用 -u 会导致命令报错。

建议将其修改为 asdf set --home

Suggested change
asdf set -u zig <version>
asdf set --home zig <version>

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.

1 participant