Skip to content

Fix building Rune on platforms other than Linux and macOS - #218

Merged
ernestrc merged 1 commit into
unstablebuild:mainfrom
dhivadhiva:fix/non-linux-macos-build
Nov 12, 2026
Merged

ernestrc merged 1 commit into
unstablebuild:mainfrom
dhivadhiva:fix/non-linux-macos-build

Conversation

@dhivadhiva

Copy link
Copy Markdown
Contributor

cmd/rune, apiclient and ideupgrade only compiled on Linux and macOS. GOOS=freebsd fails
in Rune's own code, and GOOS=windows has failed in cmd/rune since the presets were split
per OS, on top of the tcell blocker tracked in #81.

  • Use the Linux presets on every platform that has no presets of its own.
  • Refuse in-place upgrades on other platforms the way unmanaged Linux installs are
    refused, since no release artifacts are published for them.
  • Read uname fields through one helper that takes a slice. The BSD half of
    uname_darwin.go never built, because the _darwin suffix limits the file to macOS, and
    the old helpers could index past a field with no NUL terminator. Platforms without
    uname(2) report what the Go runtime knows.

Refs #68, #81


Authorship

Using AI is completely fine and encouraged, especially for reviewing your changes. We ask
so we can route the review: agent-authored code gets an agent review first, while
hand-written code deserves the respect of a human reviewer. Either way, a human who
understands the change must be able to answer questions about it.

  • Written by hand. I would like a human review.
  • Mostly or partially generated by an AI agent, which I reviewed and understand.

cmd/rune, apiclient and ideupgrade only compiled on Linux and macOS. GOOS=freebsd fails
in Rune's own code, and GOOS=windows has failed in cmd/rune since the presets were split
per OS, on top of the tcell blocker tracked in unstablebuild#81.

- Use the Linux presets on every platform that has no presets of its own.
- Refuse in-place upgrades on other platforms the way unmanaged Linux installs are
  refused, since no release artifacts are published for them.
- Read uname fields through one helper that takes a slice. The BSD half of
  uname_darwin.go never built, because the _darwin suffix limits the file to macOS, and
  the old helpers could index past a field with no NUL terminator. Platforms without
  uname(2) report what the Go runtime knows.

Refs unstablebuild#68, unstablebuild#81

Signed-off-by: dhivadhiva <[email protected]>
@ernestrc
ernestrc enabled auto-merge (rebase) November 11, 2026 23:32
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/rune/ide/apiclient/uname_unix.go 91.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ernestrc
ernestrc merged commit a5e3730 into unstablebuild:main Nov 12, 2026
8 checks passed
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.

3 participants