Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Avoid cross compilation issue on Windows #25904

Merged
merged 1 commit into from Jun 6, 2023
Merged

Conversation

sayboras
Copy link
Member

@sayboras sayboras commented Jun 5, 2023

Happens in cilium-cli PR when trying to import the latest cilium/cilium main hash.

Error: vendor/github.com/cilium/cilium/pkg/hive/hive.go:202:44: undefined: unix.SIGINT
Error: vendor/github.com/cilium/cilium/pkg/hive/hive.go:202:57: undefined: unix.SIGTERM
Error: Process completed with exit code 1.

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 5, 2023
@sayboras sayboras added the release-note/misc This PR makes changes that have no direct user impact. label Jun 5, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 5, 2023
@sayboras sayboras marked this pull request as ready for review June 5, 2023 13:04
@sayboras sayboras requested a review from a team as a code owner June 5, 2023 13:04
@sayboras sayboras requested a review from rgo3 June 5, 2023 13:04
@michi-covalent
Copy link
Contributor

/test

@michi-covalent
Copy link
Contributor

/test

pkg/hive/hive.go Outdated Show resolved Hide resolved
Happens in cilium-cli PR when trying to import the latest cilium/cilium
main hash. This commit is to perform the following:

- Remove unix.SIGINT as it's same as os.Interrupt
- Replace unix.SIGTERM by syscall.SIGTERM for cross compilation

```
Error: vendor/github.com/cilium/cilium/pkg/hive/hive.go:202:44: undefined: unix.SIGINT
Error: vendor/github.com/cilium/cilium/pkg/hive/hive.go:202:57: undefined: unix.SIGTERM
Error: Process completed with exit code 1.
```

Signed-off-by: Tam Mach <tam.mach@cilium.io>
@sayboras
Copy link
Member Author

sayboras commented Jun 6, 2023

/test

@sayboras
Copy link
Member Author

sayboras commented Jun 6, 2023

/test-runtime

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 6, 2023
@sayboras sayboras merged commit 1bc9e90 into main Jun 6, 2023
61 checks passed
@sayboras sayboras deleted the tam/cross-compile branch June 6, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. 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.

None yet

4 participants