Skip to content

📖 教程:用版本标签锁定插件安装(#v0.2.0) | Tutorial: pin plugin installs to a version tag #7

Description

@TYEclipse

📖 教程:用版本标签锁定插件安装(dsh plugin add github:TYEclipse/dsh-units#v0.2.0)

Tutorial: pin plugin installs to a version tag.

为什么锁定版本 Why pin

# 不锁:每次装的是 main 分支最新代码,行为可能变化
dsh plugin --profile web add github:TYEclipse/dsh-units

# 锁定:装的是 v0.2.0 标签指向的固定提交,行为确定、可复现
dsh plugin --profile web add github:TYEclipse/dsh-units#v0.2.0

适合生产环境、自动化脚本、或任何需要"今天能用明天也能用"的场景。

dsh-units 可用标签 Available tags

标签 内容 说明
v0.2.0 14 类别(新增 typography px/pt/pc/em/rem 与 fuel economy mpg↔L/100km) 推荐
v0.1.0 12 类别基础版本 历史版本

Release 详情与 changelog:https://github.com/TYEclipse/dsh-units/releases

验证安装 Verify

dsh plugin --profile web list          # 应出现 dsh-units@v0.2.0
dsh --dump-config --profile web | grep '=='   # 应出现 # == dsh-units 层

常见问题 FAQ

  • Q: 标签安装后能升级吗? A: 能,重新 add 新标签即可(或删掉 #tag 装最新 main)。
  • Q: 所有 TYEclipse 插件都有标签吗? A: 是,2026-08-21 起全部 9 个插件均有 v0.1.0 起标签。
  • Q: 标签会变吗? A: 不会。已发布的标签永久指向同一提交;新版本用新标签。

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions