89luca89 / 89luca89/transactional-update-notifier
Fails to build using go 1.22
- 主要语言
- Go
- 星标
- 5
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
描述
openSUSE Tumbleweed is trying to change the default go version to 1.22 (or soon probably even 1.23)
transactional-update-notifier is amongst the few packages failing to build in this setup
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:K/transactional-update-notifier/standard/i586 (limited to 32bit; on x86_64, it builds successful)
```
[ 8s] mkdir -p build
[ 8s] CGO_ENABLED=0 go build -mod=vendor -buildmode=pie -ldflags "-X main.Version=1.1.0" -o build/transactional-update-notifier
[ 8s] -buildmode=pie requires external (cgo) linking, but cgo is not enabled
[ 8s] make: *** [Makefile:23: transactional-update-notifier] Error 1
[ 8s] error: Bad exit status from /var/tmp/rpm-tmp.DqR4Vl (%build)
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
构建错误发生在 Makefile 的第 23 行,该命令在禁用 CGO 的情况下使用 `-buildmode=pie`。检查 Makefile 以了解 build flags 和 vendor mod setup。修复很可能涉及调整构建命令,以启用 CGO 或更改 build mode,然后在 32-bit 架构上使用 Go 1.22 测试构建以确认。
由索引模型根据 Issue 内容生成。
评估
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 40/100