environment.yml uses conda channel 'default' instead of 'defaults'; trailing space in _toc.yml
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- yaml
调研方向
打开 environment.yml 和 lectures/_toc.yml,然后将 channel 的拼写与 zh-cn 版本中已经使用的修正形式进行比较。将 default 改为 defaults,并删除 workspace 后面的尾随空格;运行 jb build 以确认配置仍能正确解析并顺利构建。
由索引模型根据 Issue 内容生成。
描述
Two small defects in the build configuration, both found while porting this repo's scaffold into the new lecture-python-programming.ml edition (QuantEcon/lecture-python-programming.ml#6). Neither breaks the build today; the first is a latent failure worth getting ahead of.
1. environment.yml names the conda channel default, not defaults
default is not a conda channel. Conda adds it as a literal channel name and then resolves the packages from defaults, which it still adds implicitly — and warns about doing so:
Adding channel 'default'
[command]/home/runner/miniconda3/condabin/conda config --add channels default
##[warning]The 'defaults' channel might have been added implicitly. If this is intentional, add 'defaults' to the 'channels' list. Otherwise, consider setting 'conda-remove-defaults' to 'true'.
So the environment resolves by accident. Conda is deprecating the implicit-defaults behaviour, and when it goes the build fails to resolve anything.
This affects three editions — this repo, lecture-python-programming.fr and lecture-python-programming.fa — all of which carry - default. lecture-python-programming.zh-cn already has - defaults and is unaffected, so the corrected form is already proven in the fleet.
The fix is one word in environment.yml.
2. lectures/_toc.yml line 39 has a trailing space
The entry reads - file: workspace rather than - file: workspace. This is harmless in practice — YAML strips trailing whitespace from plain scalars, so both jb build and any tooling reading the file see workspace — but it propagates verbatim into every translation edition, since action-translation copies _toc.yml from source as-is. It surfaced as a review comment on the downstream PR, where fixing it locally would only have created drift against this repo.
Worth correcting here so it stops being re-copied.
- 主要语言
- JavaScript
- 星标
- 75
- 派生
- 36
- 平均合并
- 37 分钟
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
QuantEcon/lecture-python-programming 的其他 Issue
-
pandas: mean imputation corrupts Argentina's GDP per capita in the later plot可能重新可做 @omiiikb07 于 11 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
QuantEcon/lecture-python-programming#658 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 83/100
-
难度 1/5 1 小时以内 新手友好度 95/100
-
难度 1/5 1 小时以内 新手友好度 95/100
-
难度 1/5 1-3 小时 新手友好度 95/100
查看 QuantEcon/lecture-python-programming 的全部 Issue
相似的 Issue
-
Bug Tests
难度 2/5 1-3 小时 新手友好度 78/100
JSPrismarine/JSPrismarine#3384 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
desec-io/desec-stack#1312 ·
维护者通常 14 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
blowhorn-ai/blowhorn-mcp#70 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
xdelmo/Portfolio-minimal#613 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
chrisk123999/chris-premades#708 ·
维护者通常 1 天内回复