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

Use golang.org/x/sys/unix instead of syscall #40

Merged
merged 1 commit into from
May 20, 2020

Conversation

tklauser
Copy link
Contributor

@tklauser tklauser commented Feb 18, 2020

The syscall package is deprecated and no longer updated as per
https://golang.org/pkg/syscall/. Use the golang.org/x/sys/unix package
instead, which also provides a wrapper for SYS_SETNS, so the syscall
number encoding depending on runtime.GOARCH can be dropped.

Signed-off-by: Tobias Klauser tklauser@distanz.ch

The syscall package is deprecated and no longer updated as per
https://golang.org/pkg/syscall/. Use the golang.org/x/sys/unix package
instead, which also provides a wrapper for SYS_SETNS, so the syscall
number encoding depending on runtime.GOARCH can be dropped.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser
Copy link
Contributor Author

@vishvananda @aboch friendly ping: Is there anything preventing this from being merged?

@aboch
Copy link
Collaborator

aboch commented Apr 14, 2020

LGTM

Copy link

@ethanspitz ethanspitz left a comment

Choose a reason for hiding this comment

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

Looks good! I just filed a bug for this :)

@vishvananda vishvananda merged commit 52d707b into vishvananda:master May 20, 2020
@tklauser tklauser deleted the use-x-sys-unix branch May 20, 2020 07:24
vishvananda pushed a commit that referenced this pull request Sep 13, 2022
This completes the migration from `syscall` --> `golang.org/x/sys/unix`
which was started in #40:
> The syscall package is deprecated and no longer updated as per
https://golang.org/pkg/syscall/. Use the golang.org/x/sys/unix package
instead.
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.

4 participants