基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dart-lang/sdk --skill update-dependency命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | update-dependency |
| description | Updates third party dependencies in the Dart SDK |
Use this skill to update dependencies in the Dart SDK's DEPS file to their
latest (or a specific) version. This tool automates the process of updating
the version, syncing dependencies, updating package configurations, and
creating a CL.
Before running the tool, ensure your environment is prepared correctly:
main branch. The tool creates a
new branch from your current HEAD, so being on main ensures the bump
starts from a clean baseline.Run the tools/manage_deps.dart script with the bump command from the root
of the SDK.
dart tools/manage_deps.dart bump <path/to/dependency> \
[--branch <branch_name>] [--target <ref>]
<path/to/dependency> (required): The path to the dependency directory
relative to the SDK root. Dependencies are entire repositories and not
packages, so the path will usually be third_party/pkg/<repo>.
.dart_tool/package_config.json file relative to the SDK root, and search
for "name": "<package-name>". Next to that you should see a "rootUri"
key which will give you the path to the dependency. Do not use the full
path though, just the top level directory under third_party/pkg/<repo>,
since entire repos are always rolled at once..dart_tool/package_config.json file does not exist, it can be
generated by running gclient sync.--branch <branch_name> (optional): The name of the branch to create for
this update. Defaults to bump_<dependency_name>.--target <ref> (optional): The specific git ref (SHA, tag, branch) to
update to. Defaults to the latest version on the remote's default branch.To bump the unified_analytics dependency, which is a part of the tools repo:
dart tools/manage_deps.dart bump third_party/pkg/tools
gcert / glogin) are only
applicable for Googlers. Since this requires interactive authentication, you
must ask the user to run gcert (or glogin) in their terminal to
authenticate, and then retry.Updates the native_rev dependency in the DEPS file with all correct verification, sync, and testing procedures
Guide for creating, registering, documenting, and testing a new lint in the Dart SDK.
Find obsolete, stale, or not reproducible analysis-server issues in the dart-lang/sdk repository.