Skip to content

user: Add non-CGO lookups for consumers#4186

Open
dtrudg wants to merge 1 commit into
sylabs:mainfrom
dtrudg:issue-4185
Open

user: Add non-CGO lookups for consumers#4186
dtrudg wants to merge 1 commit into
sylabs:mainfrom
dtrudg:issue-4185

Conversation

@dtrudg

@dtrudg dtrudg commented Jun 18, 2026

Copy link
Copy Markdown
Member

Description of the Pull Request (PR):

With recent changes, internal/pkg/util/user may now be brought into projects that consume public pkg/ code.

Prior to this PR, the user package only compiles if CGO is enabled. Add non-CGO lookup functions, wrapping os.User when CGO is disabled. This permits import into projects that don't build with CGO.

Closes #4185

When reviewing, check the following now succeeds:

CGO_ENABLED=0 go build ./pkg/build/types/... ./pkg/build/types/parser/...

With recent changes, internal/pkg/util/user is may now be brought into
projects that consume public pkg/ code.

Prior to this PR, the user package only compiles if CGO is
enabled. Add non-CGO lookup functions, wrapping os.User when CGO is
disabled. This permits import into projects that don't build with CGO.

Closes sylabs#4185
@dtrudg dtrudg self-assigned this Jun 18, 2026
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.

Can't use build/types & parser without CGO

1 participant