build: release script fails at linux-s390x (aead/chacha20 assembly rejected by current Go toolchain) and windows/arm no longer supported

オープン
#536 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

Start in make/release_flags.mk, where BUILD_SYSTEM lists the platforms, and in go.mod to trace how github.com/aead/chacha20 reaches the build through lndclient/aperture. Reproduce with make release or env GOOS=linux GOARCH=s390x go build ./... to see the assembler error. Done means either the two platforms are removed from the list with a note, or the s390x build passes. The maintainers still need to decide which of those two paths to take.

索引モデルが issue の本文から書いたものです。

説明

Problem

make release on master fails partway through:

  1. linux-s390x: the legacy github.com/aead/chacha20 module (pinned at v0.0.0-20180709150244-8b13a72661da, pulled in via lndclient/aperture) contains big-endian assembly that the current Go assembler rejects:

    chacha_ref.go:32:18: illegal combination MOVWBR ADDR NONE NONE NONE NONE REG
    

    Confirmed pre-existing at 561c94b (before the v0.7.3-beta dependency bumps), so this is not a regression from #531 — the toolchain moved, the ancient module did not. v0.6.4-beta still shipped a s390x archive; v0.7.3-beta could not.

  2. windows-arm: env GOOS=windows GOARCH=arm go build now fails with unsupported GOOS/GOARCH pair windows/arm. windows-arm64 was built instead.

Suggested fix

  • Replace aead/chacha20 (abandoned) with golang.org/x/crypto/chacha20poly1305 in the dependency chain — the module is only reachable via lndclient/aperture, so it likely needs upstream fixes or a replace directive.
  • Remove linux-s390x and windows-arm from BUILD_SYSTEM in make/release_flags.mk if the platforms are being dropped intentionally, or fix the chacha20 issue if s390x support is retained.

Context

v0.7.3-beta was published without a s390x archive and with windows-arm64 instead of windows-arm; both gaps are documented in the release notes at https://github.com/lightninglabs/pool/releases/tag/v0.7.3-beta

主要言語
Go
スター
256
フォーク
53
平均マージ
20時間 22分
マージ済み PR(30日)
5

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lightninglabs/pool のほかの issue

lightninglabs/pool の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。