Build scripts need shasum, which isn't installed by default on Fedora

未关闭 适合新手
#121 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go, shell
领域
build-system

调研方向

从 scripts/build/fetch-sqlc.sh、scripts/build/fetch-restic.sh 和 scripts/build/image-tag.sh 开始,Issue 指出了其中对 shasum 的调用。检查这些脚本如何共用辅助函数,并确认 sha256sum 和 shasum -a 256 会生成兼容的输出。三个脚本都能使用任一可用命令计算哈希后,即算完成;单独的 gofmt 问题不在本报告范围内。

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

描述

scripts/build/fetch-sqlc.sh:23, fetch-restic.sh:33 and image-tag.sh:29-30 call shasum -a 256. On Fedora shasum comes from perl-Digest-SHA and isn't there by default, so make stops at fetching sqlc and the image tag can't be computed. sha256sum (coreutils) gives the same output.

We should pick whichever of the two exists, e.g. a small helper the scripts share:

sha256() { if command -v sha256sum >/dev/null; then sha256sum "$@"; else shasum -a 256 "$@"; fi; }

Separately, gofmt -l flags internal/features/authoidc/oidc_test.go on main (e493830).

主要语言
Go
星标
5
派生
0
平均合并
21 小时 13 分钟
30 天内合并 PR
53

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

nebari-dev/tapas 的其他 Issue

查看 nebari-dev/tapas 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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