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

Add go1.10 build constraint #30

Merged
merged 1 commit into from
Dec 30, 2020
Merged

Add go1.10 build constraint #30

merged 1 commit into from
Dec 30, 2020

Conversation

brb
Copy link
Contributor

@brb brb commented Dec 21, 2018

This prevents netns from being used on older Go runtimes on which it's not safe to perform any state manipulations of a scheduling thread (golang/go#20676).

Partially fixes #17.

This prevents netns from being used on older Go runtimes on which it's
not safe to perform any state manipulations of a scheduling thread
(golang/go#20676).

Signed-off-by: Martynas Pumputis <m@lambda.lt>
@@ -1,4 +1,4 @@
// +build linux
// +build linux,go1.10
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like go1.15 is now the latest officially stable version. I think it is safe to merge this one then.

@aboch
Copy link
Collaborator

aboch commented Dec 30, 2020

LGTM

@aboch aboch merged commit c4f3ca7 into vishvananda:master Dec 30, 2020
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.

Setns() is hard to call safely on Go 1.9 and earlier
2 participants