Skip to content

Move errProcessInfoMissing to platform-independent file#46

Merged
torstenwalter merged 1 commit intomainfrom
fix-compilation-issues-for-non-linux-systems
Feb 16, 2026
Merged

Move errProcessInfoMissing to platform-independent file#46
torstenwalter merged 1 commit intomainfrom
fix-compilation-issues-for-non-linux-systems

Conversation

@torstenwalter
Copy link
Member

errProcessInfoMissing was defined in command_linux.go (linux-only build tag) but referenced from memorylimit.go which compiles on all platforms, causing a build failure on non-Linux systems.

errProcessInfoMissing was defined in command_linux.go (linux-only build
tag) but referenced from memorylimit.go which compiles on all platforms,
causing a build failure on non-Linux systems.
Copilot AI review requested due to automatic review settings February 16, 2026 15:40
@torstenwalter torstenwalter requested a review from a team as a code owner February 16, 2026 15:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a cross-platform build failure by relocating errProcessInfoMissing from a Linux-only file to a platform-independent file, so it’s available to code compiled on all OSes (notably memorylimit.go).

Changes:

  • Removed errProcessInfoMissing from pipe/command_linux.go (Linux build-tagged file).
  • Added errProcessInfoMissing to pipe/command.go so it’s compiled on all platforms.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pipe/command_linux.go Removes the Linux-only definition of errProcessInfoMissing (and the now-unneeded errors import).
pipe/command.go Adds a package-level definition of errProcessInfoMissing so non-Linux builds can reference it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@torstenwalter torstenwalter merged commit 903aad4 into main Feb 16, 2026
11 checks passed
@torstenwalter torstenwalter deleted the fix-compilation-issues-for-non-linux-systems branch February 16, 2026 15:43
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.

2 participants