Skip to content

Comments

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

Merged
vishvananda merged 1 commit intovishvananda:masterfrom
tklauser:use-x-sys-unix
May 20, 2020
Merged

Use golang.org/x/sys/unix instead of syscall#40
vishvananda merged 1 commit intovishvananda:masterfrom
tklauser:use-x-sys-unix

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 [email protected]

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 <[email protected]>
@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