build script doesn't revalidate base `working-directory`.
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- shell
- 领域
- build-system
调研方向
Reproduce the YAML example and inspect the generated build script's handling of working-directory changes, especially the final return to the original directory. Trace where directory existence is assumed, then verify the behavior with a case where the working directory is moved or removed and confirm the script no longer fails while restoring it.
由索引模型根据 Issue 内容生成。
描述
The following fails (go.dev-type):
build:
working-directory: src
script:
- make.bash
- mkdir -p "{{prefix}}"
- run: mv src "{{prefix}}"
working-directory: $SRCROOT
with
+ unset OLDWD
+ OLDWD=/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/1892f004/src
+ mkdir -p /var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/1892f004
+ cd /var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/1892f004
+ mv src /opt/go.dev/v1.21.0
+ cd /var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/1892f004/src
/var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/1892f004/xyz.tea.build.sh: line 53: cd: /var/folders/8b/n_gmhmk57ks85swq3mrdbrwc0000gp/T/1892f004/src: No such file or directory
Makes sense, but an odd gotcha. Could be prevented with a test -d $foo || mkdir -p $foo, or similar.
- 主要语言
- TypeScript
- 星标
- 65
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pkgxdev/brewkit 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 52/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 35/100
相似的 Issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 70/100