Skip to content

Conversation

tklauser
Copy link
Member

Due to a recent change cilium-cli started pulling in this package. We currently still build release binaries for linux/386, but these are failing with

# github.com/cilium/cilium/pkg/mountinfo
Error: ../../pkg/mountinfo/mountinfo_linux.go:56:27: invalid operation: fst.Type == mntType (mismatched types int32 and int64)

because fst.Type has a different type depending on GOARCH (e.g. int32 on linux/386). Fix this issue by converting fst.Type to int64 for comparison.

Related #16843

@tklauser tklauser added the release-note/misc This PR makes changes that have no direct user impact. label Nov 29, 2023
@tklauser tklauser requested a review from a team as a code owner November 29, 2023 12:23
@tklauser tklauser requested a review from markpash November 29, 2023 12:23
@tklauser
Copy link
Member Author

/test

Due to a recent change cilium-cli started pulling in this package.
We currently still build release binaries for linux/386, but these are
failing with

    # github.com/cilium/cilium/pkg/mountinfo
    Error: ../../pkg/mountinfo/mountinfo_linux.go:56:27: invalid operation: fst.Type == mntType (mismatched types int32 and int64)

because fst.Type has a different type depending on GOARCH (e.g. int32 on
linux/386). Fix this issue by converting fst.Type to int64 for
comparison.

Related #16843

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser force-pushed the pr/tklauser/mountinfo-fix-386-build branch from 33e9521 to 632510f Compare November 29, 2023 12:48
@tklauser
Copy link
Member Author

/test

Copy link
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

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

fascinating

@tklauser tklauser enabled auto-merge November 29, 2023 17:15
@tklauser tklauser added this pull request to the merge queue Nov 29, 2023
Merged via the queue into main with commit 6f629af Nov 29, 2023
@tklauser tklauser deleted the pr/tklauser/mountinfo-fix-386-build branch November 29, 2023 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants