Skip to content

Add linux/riscv64 to release binaries#711

Open
rajeshgangam wants to merge 1 commit into
wagoodman:mainfrom
rajeshgangam:add-riscv64-release
Open

Add linux/riscv64 to release binaries#711
rajeshgangam wants to merge 1 commit into
wagoodman:mainfrom
rajeshgangam:add-riscv64-release

Conversation

@rajeshgangam

Copy link
Copy Markdown

Summary

  • Add riscv64 to the goreleaser goarch list so that linux/riscv64 binaries are included in future releases
  • Go natively supports cross-compilation to linux/riscv64 with CGO_ENABLED=0, so no additional toolchain is needed
  • Only linux/riscv64 is a valid Go target — windows/riscv64 and darwin/riscv64 are not supported, so goreleaser will only produce the linux binary

Motivation

RISC-V hardware (e.g., SiFive boards, StarFive VisionFive 2) is increasingly used in development. Having pre-built dive binaries for riscv64 avoids the need to compile from source on these platforms.

Test plan

  • Verified GOOS=linux GOARCH=riscv64 CGO_ENABLED=0 go build ./cmd/dive compiles successfully
  • No other OS/arch combinations are affected

Add riscv64 to the goreleaser goarch list so that linux/riscv64
binaries are included in future releases. Go natively supports
cross-compilation to linux/riscv64 with CGO_ENABLED=0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant