89luca89 / 89luca89/transactional-update-notifier

Fails to build using go 1.22

未關閉
#6 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。