Skip to content

Commit a7bae09

Browse files
authored
fix(cgo): exclude crypto/internal/sysrand/internal/seccomp from SDK srcs (#4311)
**What type of PR is this?** Bug fix **What does this PR do? Why is it needed?** The `crypto/internal/sysrand/internal/seccomp` package fails to compile with linux kernel sources prior to 3.17. It's an internal package that is only used by unit tests, so compiling it as part of the monolithic SDK target is a waste of time anyway, so just exclude it. **Which issues(s) does this PR fix?** Fixes #4310
1 parent ccb5cb6 commit a7bae09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go/private/BUILD.sdk.bazel

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ filegroup(
2929
"src/**/*_test.go",
3030
"src/**/testdata/**",
3131
"src/cmd/**",
32+
# Only used by tests, cgo fails with linux before 3.17
33+
"src/crypto/internal/sysrand/internal/seccomp/**",
3234
"src/log/slog/internal/benchmarks/**",
3335
"src/log/slog/internal/slogtest/**",
3436
"src/internal/obscuretestdata/**",

0 commit comments

Comments
 (0)