-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4234 from cyphar/go122
[hotfix] nsenter: refuse to build with Go 1.22
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//go:build go1.22 | ||
|
||
package nsenter | ||
|
||
/* | ||
// We know for sure that glibc has issues with pthread_self() when called from | ||
// Go after nsenter has run. This is likely a more general problem with how we | ||
// ignore the rules in signal-safety(7), and so it's possible musl will also | ||
// have issues, but as this is just a hotfix let's only block glibc builds. | ||
#include <features.h> | ||
#ifdef __GLIBC__ | ||
# error "runc does not currently work properly with Go >=1.22. See <https://github.com/opencontainers/runc/issues/4233>." | ||
#endif | ||
*/ | ||
import "C" |