Skip to content

[codex] fix Linux OS release parsing#24

Merged
ncode merged 1 commit into
mainfrom
codex/fix-linux-os-release-parsing
Jun 24, 2026
Merged

[codex] fix Linux OS release parsing#24
ncode merged 1 commit into
mainfrom
codex/fix-linux-os-release-parsing

Conversation

@ncode

@ncode ncode commented Jun 24, 2026

Copy link
Copy Markdown
Owner

What changed

  • Split dotted VERSION_ID values for NixOS, Rocky Linux, and AlmaLinux os.release into major and minor, matching os.distro.release.
  • Kept Arch Linux BUILD_ID=rolling from being treated as an operating system release.
  • Updated the unreleased changelog entry.

Why

The NixOS lab VM showed os.distro.release.major = "26" while os.release.major = "26.05". A sweep of the existing lab binaries found the same class of mismatch on Rocky 9 and AlmaLinux 9.

Validation

  • go test ./internal/engine -run 'TestParseLinuxOSRelease|TestCurrentOSRelease'
  • go test ./...
  • go vet ./...
  • make build
  • git diff --check

Note: existing lab binaries were checked across the running VM fleet. Uploading the newly built candidate binaries for full remote validation was blocked by sandbox policy pending explicit approval.

@ncode ncode marked this pull request as ready for review June 24, 2026 07:58
@ncode ncode merged commit 083d27d into main Jun 24, 2026
37 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.

1 participant