Skip to content

Comments

Add go1.10 build constraint#30

Merged
aboch merged 1 commit intovishvananda:masterfrom
brb:safer-netns
Dec 30, 2020
Merged

Add go1.10 build constraint#30
aboch merged 1 commit intovishvananda:masterfrom
brb:safer-netns

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