Skip to content

mlock, password: add aix to unix build constraints - #190

Open
AdamTylerLynch wants to merge 1 commit into
hashicorp:mainfrom
AdamTylerLynch:aix-build-tags
Open

mlock, password: add aix to unix build constraints#190
AdamTylerLynch wants to merge 1 commit into
hashicorp:mainfrom
AdamTylerLynch:aix-build-tags

Conversation

@AdamTylerLynch

Copy link
Copy Markdown

Summary

Adds aix to the build constraints of mlock/mlock_unix.go and password/password_unix.go so both modules compile for GOOS=aix GOARCH=ppc64.

Fixes #189

Background

Both packages currently fail on AIX with undefined: lockMemory / undefined: read — the platform falls through to no implementation. The syscalls used by the unix implementations are available on aix/ppc64 with the stock Go toolchain; no aix-specific code is needed, only the constraint.

This patch has been validated by the IBM Power integration team, who have been carrying it as a fork patch for AIX builds of the Vault CLI/Agent (credited as commit co-author).

Testing

  • GOOS=aix GOARCH=ppc64 go build ./... in both mlock/ and password/ — compiles
  • Native go build / go vet / go test — unchanged, green
  • No behavior change on any currently supported platform (constraint-only change; mlock_unavail.go still covers darwin/windows/etc.)

GOOS=aix builds of both modules currently fail (undefined: lockMemory /
undefined: read) because neither unix implementation file includes aix in
its build constraint. The syscalls both files use are available on
aix/ppc64 with the stock Go toolchain.

Validated by the IBM Power integration team in AIX builds of the Vault
CLI/Agent.

Fixes hashicorp#189

Co-authored-by: Hari G Muralidharan <harimura@in.ibm.com>
@AdamTylerLynch
AdamTylerLynch requested a review from a team as a code owner July 13, 2026 21:31
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.

mlock and password do not build on AIX (GOOS=aix)

1 participant