Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add support for feature order definition in devcontainer definitions

未关闭
#226 0 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
go

调研方向

从 devcontainer/devcontainer.go 中链接的 feature 排序代码开始,并阅读 devcontainer 规范中关于安装顺序的部分。跟踪如何加载来自 devcontainer-feature.json 的 feature 元数据和来自 devcontainer.json 的配置。当 dependsOn、installsAfter 和 overrideFeatureInstallOrder 会影响执行顺序,并且按照 PR #219 所示记录不支持的行为时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Currently, the order that features are executed as part of the container build is alphabetically sorted in the following code, where there is a TODO to implement support for the "installation order" that is part of the devcontainer spec: https://containers.dev/implementors/features/#installation-order

https://github.com/coder/envbuilder/blob/c72728897e91e713958a8ca0c7211574784ae79e/devcontainer/devcontainer.go#L236-L244

The ask in this issue is to implement support for:

  • The dependsOn property defined as a part of a Feature’s devcontainer-feature.json.
  • The installsAfter property defined as part of a Feature’s devcontainer-feature.json.
  • The overrideFeatureInstallOrder property in user’s devcontainer.json. Allows users to control the order of execution of their Features.

I wasn't able to find an existing issue tracking this, but let me know if there is! Happy to also provide more context on why this is a useful feature if that helps in prioritizing this. Features with any sort of dependencies are unusable in most cases unless the alphabetical ordering happens to line up.


In the meantime, it would be helpful to have this documented in the way that this PR did for other unsupported features: https://github.com/coder/envbuilder/pull/219

主要语言
Go
星标
300
派生
64
平均合并
20 分钟
30 天内合并 PR
1

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/envbuilder 的其他 Issue

查看 coder/envbuilder 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。