diff --git a/packages/orchestrator/benchmarks/benchmark_test.go b/packages/orchestrator/benchmarks/benchmark_test.go index 64f9427f68..67a70547e7 100644 --- a/packages/orchestrator/benchmarks/benchmark_test.go +++ b/packages/orchestrator/benchmarks/benchmark_test.go @@ -1,3 +1,5 @@ +//go:build linux + // run with something like: // // sudo `which go` test -benchtime=15s -bench=. -v diff --git a/packages/orchestrator/benchmarks/concurrent_benchmark_test.go b/packages/orchestrator/benchmarks/concurrent_benchmark_test.go index 594ab92774..01deed824e 100644 --- a/packages/orchestrator/benchmarks/concurrent_benchmark_test.go +++ b/packages/orchestrator/benchmarks/concurrent_benchmark_test.go @@ -1,3 +1,5 @@ +//go:build linux + // Concurrent sandbox creation benchmark. // // Measures how many sandboxes can be effectively resumed in parallel on a diff --git a/packages/orchestrator/cmd/create-build/main.go b/packages/orchestrator/cmd/create-build/main.go index 59800f3461..d67097e39f 100644 --- a/packages/orchestrator/cmd/create-build/main.go +++ b/packages/orchestrator/cmd/create-build/main.go @@ -1,3 +1,5 @@ +//go:build linux + package main import ( diff --git a/packages/orchestrator/cmd/mount-build-rootfs/main.go b/packages/orchestrator/cmd/mount-build-rootfs/main.go index 1cc2b724b7..ed155cfa29 100644 --- a/packages/orchestrator/cmd/mount-build-rootfs/main.go +++ b/packages/orchestrator/cmd/mount-build-rootfs/main.go @@ -1,3 +1,5 @@ +//go:build linux + package main import ( diff --git a/packages/orchestrator/cmd/resume-build/main.go b/packages/orchestrator/cmd/resume-build/main.go index 81f4729ca0..3af18330ba 100644 --- a/packages/orchestrator/cmd/resume-build/main.go +++ b/packages/orchestrator/cmd/resume-build/main.go @@ -1,3 +1,5 @@ +//go:build linux + package main import ( diff --git a/packages/orchestrator/cmd/resume-build/shell.go b/packages/orchestrator/cmd/resume-build/shell.go index 36374d65cb..8ec9b3a67b 100644 --- a/packages/orchestrator/cmd/resume-build/shell.go +++ b/packages/orchestrator/cmd/resume-build/shell.go @@ -1,3 +1,5 @@ +//go:build linux + package main import ( diff --git a/packages/orchestrator/cmd/smoketest/smoke_test.go b/packages/orchestrator/cmd/smoketest/smoke_test.go index dc20cd89c3..e5431aa82b 100644 --- a/packages/orchestrator/cmd/smoketest/smoke_test.go +++ b/packages/orchestrator/cmd/smoketest/smoke_test.go @@ -1,3 +1,5 @@ +//go:build linux + package smoketest_test import ( diff --git a/packages/orchestrator/main.go b/packages/orchestrator/main.go index b1b415d520..893bee303e 100644 --- a/packages/orchestrator/main.go +++ b/packages/orchestrator/main.go @@ -1,3 +1,5 @@ +//go:build linux + package main import ( diff --git a/packages/orchestrator/pkg/cfg/model.go b/packages/orchestrator/pkg/cfg/model.go index 8c93857b81..ad75bf168e 100644 --- a/packages/orchestrator/pkg/cfg/model.go +++ b/packages/orchestrator/pkg/cfg/model.go @@ -1,3 +1,5 @@ +//go:build linux + package cfg import ( diff --git a/packages/orchestrator/pkg/cfg/model_test.go b/packages/orchestrator/pkg/cfg/model_test.go index 053fcb79be..5d543778d3 100644 --- a/packages/orchestrator/pkg/cfg/model_test.go +++ b/packages/orchestrator/pkg/cfg/model_test.go @@ -1,3 +1,5 @@ +//go:build linux + //nolint:paralleltest // many tests set env, which may cause issues package cfg diff --git a/packages/orchestrator/pkg/cfg/service.go b/packages/orchestrator/pkg/cfg/service.go index 679c32c8e7..4b338cfb93 100644 --- a/packages/orchestrator/pkg/cfg/service.go +++ b/packages/orchestrator/pkg/cfg/service.go @@ -1,3 +1,5 @@ +//go:build linux + package cfg import ( diff --git a/packages/orchestrator/pkg/chrooted/builder.go b/packages/orchestrator/pkg/chrooted/builder.go index ae6675630f..b5301cd8df 100644 --- a/packages/orchestrator/pkg/chrooted/builder.go +++ b/packages/orchestrator/pkg/chrooted/builder.go @@ -1,3 +1,5 @@ +//go:build linux + package chrooted import ( diff --git a/packages/orchestrator/pkg/chrooted/change.go b/packages/orchestrator/pkg/chrooted/change.go index 79b9df1635..70572ca1ec 100644 --- a/packages/orchestrator/pkg/chrooted/change.go +++ b/packages/orchestrator/pkg/chrooted/change.go @@ -1,3 +1,5 @@ +//go:build linux + package chrooted import ( diff --git a/packages/orchestrator/pkg/chrooted/chroot.go b/packages/orchestrator/pkg/chrooted/chroot.go index 139142f3ae..74ad1539be 100644 --- a/packages/orchestrator/pkg/chrooted/chroot.go +++ b/packages/orchestrator/pkg/chrooted/chroot.go @@ -1,3 +1,5 @@ +//go:build linux + package chrooted import ( diff --git a/packages/orchestrator/pkg/chrooted/chroot_test.go b/packages/orchestrator/pkg/chrooted/chroot_test.go index aae9ea4df0..b498f2a4f6 100644 --- a/packages/orchestrator/pkg/chrooted/chroot_test.go +++ b/packages/orchestrator/pkg/chrooted/chroot_test.go @@ -1,3 +1,5 @@ +//go:build linux + package chrooted import ( diff --git a/packages/orchestrator/pkg/chrooted/fs.go b/packages/orchestrator/pkg/chrooted/fs.go index 0575c71ab5..f7addb21f3 100644 --- a/packages/orchestrator/pkg/chrooted/fs.go +++ b/packages/orchestrator/pkg/chrooted/fs.go @@ -1,3 +1,5 @@ +//go:build linux + package chrooted import ( diff --git a/packages/orchestrator/pkg/chrooted/mountns.go b/packages/orchestrator/pkg/chrooted/mountns.go index c20f252290..a21ac70d4f 100644 --- a/packages/orchestrator/pkg/chrooted/mountns.go +++ b/packages/orchestrator/pkg/chrooted/mountns.go @@ -1,3 +1,5 @@ +//go:build linux + package chrooted import ( diff --git a/packages/orchestrator/pkg/chrooted/mountns_test.go b/packages/orchestrator/pkg/chrooted/mountns_test.go index 5f16aca5fb..3dbe00edbb 100644 --- a/packages/orchestrator/pkg/chrooted/mountns_test.go +++ b/packages/orchestrator/pkg/chrooted/mountns_test.go @@ -1,3 +1,5 @@ +//go:build linux + package chrooted import ( diff --git a/packages/orchestrator/pkg/factories/cmux.go b/packages/orchestrator/pkg/factories/cmux.go index 01bbbf0650..2a3397c7c6 100644 --- a/packages/orchestrator/pkg/factories/cmux.go +++ b/packages/orchestrator/pkg/factories/cmux.go @@ -1,3 +1,5 @@ +//go:build linux + package factories import ( diff --git a/packages/orchestrator/pkg/factories/http.go b/packages/orchestrator/pkg/factories/http.go index b0001c2111..a8101f074c 100644 --- a/packages/orchestrator/pkg/factories/http.go +++ b/packages/orchestrator/pkg/factories/http.go @@ -1,3 +1,5 @@ +//go:build linux + package factories import "net/http" diff --git a/packages/orchestrator/pkg/factories/run.go b/packages/orchestrator/pkg/factories/run.go index 407f1570a0..c418e25bfd 100644 --- a/packages/orchestrator/pkg/factories/run.go +++ b/packages/orchestrator/pkg/factories/run.go @@ -1,3 +1,5 @@ +//go:build linux + package factories import ( diff --git a/packages/orchestrator/pkg/healthcheck/healthcheck.go b/packages/orchestrator/pkg/healthcheck/healthcheck.go index 68be7da0c2..81b8c302ae 100644 --- a/packages/orchestrator/pkg/healthcheck/healthcheck.go +++ b/packages/orchestrator/pkg/healthcheck/healthcheck.go @@ -1,3 +1,5 @@ +//go:build linux + package healthcheck import ( diff --git a/packages/orchestrator/pkg/hyperloopserver/handlers/logs.go b/packages/orchestrator/pkg/hyperloopserver/handlers/logs.go index b42fc56153..d9db476722 100644 --- a/packages/orchestrator/pkg/hyperloopserver/handlers/logs.go +++ b/packages/orchestrator/pkg/hyperloopserver/handlers/logs.go @@ -1,3 +1,5 @@ +//go:build linux + package handlers import ( diff --git a/packages/orchestrator/pkg/hyperloopserver/handlers/me.go b/packages/orchestrator/pkg/hyperloopserver/handlers/me.go index d1cadff283..2c87123479 100644 --- a/packages/orchestrator/pkg/hyperloopserver/handlers/me.go +++ b/packages/orchestrator/pkg/hyperloopserver/handlers/me.go @@ -1,3 +1,5 @@ +//go:build linux + package handlers import ( diff --git a/packages/orchestrator/pkg/hyperloopserver/handlers/store.go b/packages/orchestrator/pkg/hyperloopserver/handlers/store.go index eab5e8b5a5..3f2a6649aa 100644 --- a/packages/orchestrator/pkg/hyperloopserver/handlers/store.go +++ b/packages/orchestrator/pkg/hyperloopserver/handlers/store.go @@ -1,3 +1,5 @@ +//go:build linux + package handlers import ( diff --git a/packages/orchestrator/pkg/hyperloopserver/server.go b/packages/orchestrator/pkg/hyperloopserver/server.go index 06a07ad1a0..3bb8e006fa 100644 --- a/packages/orchestrator/pkg/hyperloopserver/server.go +++ b/packages/orchestrator/pkg/hyperloopserver/server.go @@ -1,3 +1,5 @@ +//go:build linux + package hyperloopserver import ( diff --git a/packages/orchestrator/pkg/metrics/host.go b/packages/orchestrator/pkg/metrics/host.go index 729ca97b74..da0e4be4a6 100644 --- a/packages/orchestrator/pkg/metrics/host.go +++ b/packages/orchestrator/pkg/metrics/host.go @@ -1,3 +1,5 @@ +//go:build linux + package metrics import ( diff --git a/packages/orchestrator/pkg/metrics/sandboxes.go b/packages/orchestrator/pkg/metrics/sandboxes.go index 5c025ed5b7..5b3c4fc6e4 100644 --- a/packages/orchestrator/pkg/metrics/sandboxes.go +++ b/packages/orchestrator/pkg/metrics/sandboxes.go @@ -1,3 +1,5 @@ +//go:build linux + package metrics import ( diff --git a/packages/orchestrator/pkg/nfsproxy/chroot/change.go b/packages/orchestrator/pkg/nfsproxy/chroot/change.go index b9688f91ec..0168bc2d90 100644 --- a/packages/orchestrator/pkg/nfsproxy/chroot/change.go +++ b/packages/orchestrator/pkg/nfsproxy/chroot/change.go @@ -1,3 +1,5 @@ +//go:build linux + package chroot import ( diff --git a/packages/orchestrator/pkg/nfsproxy/chroot/file.go b/packages/orchestrator/pkg/nfsproxy/chroot/file.go index ca22254af9..df2a681817 100644 --- a/packages/orchestrator/pkg/nfsproxy/chroot/file.go +++ b/packages/orchestrator/pkg/nfsproxy/chroot/file.go @@ -1,3 +1,5 @@ +//go:build linux + package chroot import ( diff --git a/packages/orchestrator/pkg/nfsproxy/chroot/file_test.go b/packages/orchestrator/pkg/nfsproxy/chroot/file_test.go index cc23ef15fe..553b050d1b 100644 --- a/packages/orchestrator/pkg/nfsproxy/chroot/file_test.go +++ b/packages/orchestrator/pkg/nfsproxy/chroot/file_test.go @@ -1,3 +1,5 @@ +//go:build linux + package chroot import ( diff --git a/packages/orchestrator/pkg/nfsproxy/chroot/fs.go b/packages/orchestrator/pkg/nfsproxy/chroot/fs.go index 64a3fef83a..3960659d67 100644 --- a/packages/orchestrator/pkg/nfsproxy/chroot/fs.go +++ b/packages/orchestrator/pkg/nfsproxy/chroot/fs.go @@ -1,3 +1,5 @@ +//go:build linux + package chroot import ( diff --git a/packages/orchestrator/pkg/nfsproxy/chroot/fs_failed.go b/packages/orchestrator/pkg/nfsproxy/chroot/fs_failed.go index 6956c24f8c..ef438064d1 100644 --- a/packages/orchestrator/pkg/nfsproxy/chroot/fs_failed.go +++ b/packages/orchestrator/pkg/nfsproxy/chroot/fs_failed.go @@ -1,3 +1,5 @@ +//go:build linux + package chroot import ( diff --git a/packages/orchestrator/pkg/nfsproxy/chroot/nfs.go b/packages/orchestrator/pkg/nfsproxy/chroot/nfs.go index 37bf6a794e..89825a3298 100644 --- a/packages/orchestrator/pkg/nfsproxy/chroot/nfs.go +++ b/packages/orchestrator/pkg/nfsproxy/chroot/nfs.go @@ -1,3 +1,5 @@ +//go:build linux + package chroot import ( diff --git a/packages/orchestrator/pkg/nfsproxy/e2e_test.go b/packages/orchestrator/pkg/nfsproxy/e2e_test.go index 42f9c43d14..ed910c5107 100644 --- a/packages/orchestrator/pkg/nfsproxy/e2e_test.go +++ b/packages/orchestrator/pkg/nfsproxy/e2e_test.go @@ -1,3 +1,5 @@ +//go:build linux + package nfsproxy import ( diff --git a/packages/orchestrator/pkg/nfsproxy/proxy.go b/packages/orchestrator/pkg/nfsproxy/proxy.go index b50c1b948e..cb85da12a8 100644 --- a/packages/orchestrator/pkg/nfsproxy/proxy.go +++ b/packages/orchestrator/pkg/nfsproxy/proxy.go @@ -1,3 +1,5 @@ +//go:build linux + package nfsproxy import ( diff --git a/packages/orchestrator/pkg/nfsproxy/proxy_test.go b/packages/orchestrator/pkg/nfsproxy/proxy_test.go index a0f453fde3..31bc6c2c48 100644 --- a/packages/orchestrator/pkg/nfsproxy/proxy_test.go +++ b/packages/orchestrator/pkg/nfsproxy/proxy_test.go @@ -1,3 +1,5 @@ +//go:build linux + package nfsproxy import ( diff --git a/packages/orchestrator/pkg/nfsproxy/spanconn.go b/packages/orchestrator/pkg/nfsproxy/spanconn.go index 35e11d3c5c..4f8a61ca6a 100644 --- a/packages/orchestrator/pkg/nfsproxy/spanconn.go +++ b/packages/orchestrator/pkg/nfsproxy/spanconn.go @@ -1,3 +1,5 @@ +//go:build linux + package nfsproxy import ( diff --git a/packages/orchestrator/pkg/proxy/metrics.go b/packages/orchestrator/pkg/proxy/metrics.go index 8e9b316a33..6a41abdaa9 100644 --- a/packages/orchestrator/pkg/proxy/metrics.go +++ b/packages/orchestrator/pkg/proxy/metrics.go @@ -1,3 +1,5 @@ +//go:build linux + package proxy import ( diff --git a/packages/orchestrator/pkg/proxy/proxy.go b/packages/orchestrator/pkg/proxy/proxy.go index 47556e8b2f..a09c9d9b97 100644 --- a/packages/orchestrator/pkg/proxy/proxy.go +++ b/packages/orchestrator/pkg/proxy/proxy.go @@ -1,3 +1,5 @@ +//go:build linux + package proxy import ( diff --git a/packages/orchestrator/pkg/sandbox/block/cache.go b/packages/orchestrator/pkg/sandbox/block/cache.go index d26355e0c4..d88d338d11 100644 --- a/packages/orchestrator/pkg/sandbox/block/cache.go +++ b/packages/orchestrator/pkg/sandbox/block/cache.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/cache_test.go b/packages/orchestrator/pkg/sandbox/block/cache_test.go index a7ffa6cca2..a06663aceb 100644 --- a/packages/orchestrator/pkg/sandbox/block/cache_test.go +++ b/packages/orchestrator/pkg/sandbox/block/cache_test.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/device.go b/packages/orchestrator/pkg/sandbox/block/device.go index 9dd04c7a47..e7508419ff 100644 --- a/packages/orchestrator/pkg/sandbox/block/device.go +++ b/packages/orchestrator/pkg/sandbox/block/device.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/empty.go b/packages/orchestrator/pkg/sandbox/block/empty.go index bf55ceeb6e..a42467d081 100644 --- a/packages/orchestrator/pkg/sandbox/block/empty.go +++ b/packages/orchestrator/pkg/sandbox/block/empty.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/fetch_session.go b/packages/orchestrator/pkg/sandbox/block/fetch_session.go index eddcbd5679..8b013afb01 100644 --- a/packages/orchestrator/pkg/sandbox/block/fetch_session.go +++ b/packages/orchestrator/pkg/sandbox/block/fetch_session.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/fetch_session_test.go b/packages/orchestrator/pkg/sandbox/block/fetch_session_test.go index ee38d3cf67..bb9a97780d 100644 --- a/packages/orchestrator/pkg/sandbox/block/fetch_session_test.go +++ b/packages/orchestrator/pkg/sandbox/block/fetch_session_test.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/iov.go b/packages/orchestrator/pkg/sandbox/block/iov.go index 41a32e88c1..888768ec62 100644 --- a/packages/orchestrator/pkg/sandbox/block/iov.go +++ b/packages/orchestrator/pkg/sandbox/block/iov.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/local.go b/packages/orchestrator/pkg/sandbox/block/local.go index 8400c3cc0f..03557512b6 100644 --- a/packages/orchestrator/pkg/sandbox/block/local.go +++ b/packages/orchestrator/pkg/sandbox/block/local.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/overlay.go b/packages/orchestrator/pkg/sandbox/block/overlay.go index 5ba350be82..02f4195bcb 100644 --- a/packages/orchestrator/pkg/sandbox/block/overlay.go +++ b/packages/orchestrator/pkg/sandbox/block/overlay.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/prefetch_tracker.go b/packages/orchestrator/pkg/sandbox/block/prefetch_tracker.go index af586fc02b..f32486e943 100644 --- a/packages/orchestrator/pkg/sandbox/block/prefetch_tracker.go +++ b/packages/orchestrator/pkg/sandbox/block/prefetch_tracker.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/range.go b/packages/orchestrator/pkg/sandbox/block/range.go index 7d86488a3e..531ce41335 100644 --- a/packages/orchestrator/pkg/sandbox/block/range.go +++ b/packages/orchestrator/pkg/sandbox/block/range.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/range_test.go b/packages/orchestrator/pkg/sandbox/block/range_test.go index 3e2f88681f..9b1fbb5c63 100644 --- a/packages/orchestrator/pkg/sandbox/block/range_test.go +++ b/packages/orchestrator/pkg/sandbox/block/range_test.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/streaming_chunk.go b/packages/orchestrator/pkg/sandbox/block/streaming_chunk.go index 94e9cf8ef4..0b3a02de17 100644 --- a/packages/orchestrator/pkg/sandbox/block/streaming_chunk.go +++ b/packages/orchestrator/pkg/sandbox/block/streaming_chunk.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/streaming_chunk_test.go b/packages/orchestrator/pkg/sandbox/block/streaming_chunk_test.go index 28ed991cbc..ec3c28dfbe 100644 --- a/packages/orchestrator/pkg/sandbox/block/streaming_chunk_test.go +++ b/packages/orchestrator/pkg/sandbox/block/streaming_chunk_test.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/tracker.go b/packages/orchestrator/pkg/sandbox/block/tracker.go index 0e6aec8f5d..6c5a56bc16 100644 --- a/packages/orchestrator/pkg/sandbox/block/tracker.go +++ b/packages/orchestrator/pkg/sandbox/block/tracker.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/block/tracker_test.go b/packages/orchestrator/pkg/sandbox/block/tracker_test.go index 62d73d5f4d..7b84837aef 100644 --- a/packages/orchestrator/pkg/sandbox/block/tracker_test.go +++ b/packages/orchestrator/pkg/sandbox/block/tracker_test.go @@ -1,3 +1,5 @@ +//go:build linux + package block import ( diff --git a/packages/orchestrator/pkg/sandbox/build/build.go b/packages/orchestrator/pkg/sandbox/build/build.go index 6b333edff7..fc38ea6a47 100644 --- a/packages/orchestrator/pkg/sandbox/build/build.go +++ b/packages/orchestrator/pkg/sandbox/build/build.go @@ -1,3 +1,5 @@ +//go:build linux + package build import ( diff --git a/packages/orchestrator/pkg/sandbox/build/cache.go b/packages/orchestrator/pkg/sandbox/build/cache.go index 416c30a658..a6dd233a6e 100644 --- a/packages/orchestrator/pkg/sandbox/build/cache.go +++ b/packages/orchestrator/pkg/sandbox/build/cache.go @@ -1,3 +1,5 @@ +//go:build linux + package build import ( diff --git a/packages/orchestrator/pkg/sandbox/build/cache_test.go b/packages/orchestrator/pkg/sandbox/build/cache_test.go index c4290fd94b..5cfdc99c7a 100644 --- a/packages/orchestrator/pkg/sandbox/build/cache_test.go +++ b/packages/orchestrator/pkg/sandbox/build/cache_test.go @@ -1,3 +1,5 @@ +//go:build linux + package build // Race Condition Tests: diff --git a/packages/orchestrator/pkg/sandbox/build/diff.go b/packages/orchestrator/pkg/sandbox/build/diff.go index 5a0f33e318..b15769ba77 100644 --- a/packages/orchestrator/pkg/sandbox/build/diff.go +++ b/packages/orchestrator/pkg/sandbox/build/diff.go @@ -1,3 +1,5 @@ +//go:build linux + package build import ( diff --git a/packages/orchestrator/pkg/sandbox/build/header_load.go b/packages/orchestrator/pkg/sandbox/build/header_load.go index f779aac6b8..badc40c7f8 100644 --- a/packages/orchestrator/pkg/sandbox/build/header_load.go +++ b/packages/orchestrator/pkg/sandbox/build/header_load.go @@ -1,3 +1,5 @@ +//go:build linux + package build import ( diff --git a/packages/orchestrator/pkg/sandbox/build/local_diff.go b/packages/orchestrator/pkg/sandbox/build/local_diff.go index ea43d9bb00..c8ba539f9a 100644 --- a/packages/orchestrator/pkg/sandbox/build/local_diff.go +++ b/packages/orchestrator/pkg/sandbox/build/local_diff.go @@ -1,3 +1,5 @@ +//go:build linux + package build import ( diff --git a/packages/orchestrator/pkg/sandbox/build/storage_diff.go b/packages/orchestrator/pkg/sandbox/build/storage_diff.go index 008afd21b4..6904c43c2e 100644 --- a/packages/orchestrator/pkg/sandbox/build/storage_diff.go +++ b/packages/orchestrator/pkg/sandbox/build/storage_diff.go @@ -1,3 +1,5 @@ +//go:build linux + package build import ( diff --git a/packages/orchestrator/pkg/sandbox/build_upload.go b/packages/orchestrator/pkg/sandbox/build_upload.go index c0f70fe184..4490bb7758 100644 --- a/packages/orchestrator/pkg/sandbox/build_upload.go +++ b/packages/orchestrator/pkg/sandbox/build_upload.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/build_upload_v3.go b/packages/orchestrator/pkg/sandbox/build_upload_v3.go index b42c817ebf..37852af30b 100644 --- a/packages/orchestrator/pkg/sandbox/build_upload_v3.go +++ b/packages/orchestrator/pkg/sandbox/build_upload_v3.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/build_upload_v4.go b/packages/orchestrator/pkg/sandbox/build_upload_v4.go index 708fe2c346..b57b7fa162 100644 --- a/packages/orchestrator/pkg/sandbox/build_upload_v4.go +++ b/packages/orchestrator/pkg/sandbox/build_upload_v4.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/cgroup/manager_test.go b/packages/orchestrator/pkg/sandbox/cgroup/manager_test.go index f4ba28e382..59b42ae78d 100644 --- a/packages/orchestrator/pkg/sandbox/cgroup/manager_test.go +++ b/packages/orchestrator/pkg/sandbox/cgroup/manager_test.go @@ -1,3 +1,5 @@ +//go:build linux + package cgroup import ( diff --git a/packages/orchestrator/pkg/sandbox/checks.go b/packages/orchestrator/pkg/sandbox/checks.go index 2934c7d39c..a9480185be 100644 --- a/packages/orchestrator/pkg/sandbox/checks.go +++ b/packages/orchestrator/pkg/sandbox/checks.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/cleanup.go b/packages/orchestrator/pkg/sandbox/cleanup.go index ce663a28b8..7227bfc100 100644 --- a/packages/orchestrator/pkg/sandbox/cleanup.go +++ b/packages/orchestrator/pkg/sandbox/cleanup.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/diffcreator.go b/packages/orchestrator/pkg/sandbox/diffcreator.go index bd4a27e30a..4fe012d964 100644 --- a/packages/orchestrator/pkg/sandbox/diffcreator.go +++ b/packages/orchestrator/pkg/sandbox/diffcreator.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/envd.go b/packages/orchestrator/pkg/sandbox/envd.go index 5bf1eff80c..49ffe1ccd0 100644 --- a/packages/orchestrator/pkg/sandbox/envd.go +++ b/packages/orchestrator/pkg/sandbox/envd.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/envd_process.go b/packages/orchestrator/pkg/sandbox/envd_process.go index 65b504fe71..a4750e0329 100644 --- a/packages/orchestrator/pkg/sandbox/envd_process.go +++ b/packages/orchestrator/pkg/sandbox/envd_process.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/envd_test.go b/packages/orchestrator/pkg/sandbox/envd_test.go index a242087b7f..f5dbf459ce 100644 --- a/packages/orchestrator/pkg/sandbox/envd_test.go +++ b/packages/orchestrator/pkg/sandbox/envd_test.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/client.go b/packages/orchestrator/pkg/sandbox/fc/client.go index b6cf4ff34e..06cdcd7779 100644 --- a/packages/orchestrator/pkg/sandbox/fc/client.go +++ b/packages/orchestrator/pkg/sandbox/fc/client.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/config.go b/packages/orchestrator/pkg/sandbox/fc/config.go index a192ce9cb2..0de9d3c684 100644 --- a/packages/orchestrator/pkg/sandbox/fc/config.go +++ b/packages/orchestrator/pkg/sandbox/fc/config.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/config_test.go b/packages/orchestrator/pkg/sandbox/fc/config_test.go index 0dff191793..de402da39e 100644 --- a/packages/orchestrator/pkg/sandbox/fc/config_test.go +++ b/packages/orchestrator/pkg/sandbox/fc/config_test.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/fc_metrics.go b/packages/orchestrator/pkg/sandbox/fc/fc_metrics.go index f0e243f0dc..d575907982 100644 --- a/packages/orchestrator/pkg/sandbox/fc/fc_metrics.go +++ b/packages/orchestrator/pkg/sandbox/fc/fc_metrics.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/kernel_args.go b/packages/orchestrator/pkg/sandbox/fc/kernel_args.go index 952bd3cfa4..572ee18ee5 100644 --- a/packages/orchestrator/pkg/sandbox/fc/kernel_args.go +++ b/packages/orchestrator/pkg/sandbox/fc/kernel_args.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/memory.go b/packages/orchestrator/pkg/sandbox/fc/memory.go index 6d1cf3eb10..94397d5e82 100644 --- a/packages/orchestrator/pkg/sandbox/fc/memory.go +++ b/packages/orchestrator/pkg/sandbox/fc/memory.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/mmds.go b/packages/orchestrator/pkg/sandbox/fc/mmds.go index dfc0d5db9b..f8ac640f6c 100644 --- a/packages/orchestrator/pkg/sandbox/fc/mmds.go +++ b/packages/orchestrator/pkg/sandbox/fc/mmds.go @@ -1,3 +1,5 @@ +//go:build linux + package fc // The metadata serialization should not be changed — it is different from the field names we use here! diff --git a/packages/orchestrator/pkg/sandbox/fc/process.go b/packages/orchestrator/pkg/sandbox/fc/process.go index c2bbb7caf7..fe9acf8fde 100644 --- a/packages/orchestrator/pkg/sandbox/fc/process.go +++ b/packages/orchestrator/pkg/sandbox/fc/process.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/script_builder.go b/packages/orchestrator/pkg/sandbox/fc/script_builder.go index 71bbf497f6..afd22b05de 100644 --- a/packages/orchestrator/pkg/sandbox/fc/script_builder.go +++ b/packages/orchestrator/pkg/sandbox/fc/script_builder.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/fc/script_builder_test.go b/packages/orchestrator/pkg/sandbox/fc/script_builder_test.go index c00dd3041e..edc676a4ab 100644 --- a/packages/orchestrator/pkg/sandbox/fc/script_builder_test.go +++ b/packages/orchestrator/pkg/sandbox/fc/script_builder_test.go @@ -1,3 +1,5 @@ +//go:build linux + package fc import ( diff --git a/packages/orchestrator/pkg/sandbox/health.go b/packages/orchestrator/pkg/sandbox/health.go index 2a06060be2..0153a543f2 100644 --- a/packages/orchestrator/pkg/sandbox/health.go +++ b/packages/orchestrator/pkg/sandbox/health.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/hoststats.go b/packages/orchestrator/pkg/sandbox/hoststats.go index a60d8c9e81..2e01b2bc32 100644 --- a/packages/orchestrator/pkg/sandbox/hoststats.go +++ b/packages/orchestrator/pkg/sandbox/hoststats.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/hoststats_collector.go b/packages/orchestrator/pkg/sandbox/hoststats_collector.go index f0ac4c371a..b5a2eaae54 100644 --- a/packages/orchestrator/pkg/sandbox/hoststats_collector.go +++ b/packages/orchestrator/pkg/sandbox/hoststats_collector.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/map.go b/packages/orchestrator/pkg/sandbox/map.go index 1e3f8f600b..b14aa209c0 100644 --- a/packages/orchestrator/pkg/sandbox/map.go +++ b/packages/orchestrator/pkg/sandbox/map.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/metrics.go b/packages/orchestrator/pkg/sandbox/metrics.go index 1a506a2a8c..4f1f0e7829 100644 --- a/packages/orchestrator/pkg/sandbox/metrics.go +++ b/packages/orchestrator/pkg/sandbox/metrics.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/dispatch.go b/packages/orchestrator/pkg/sandbox/nbd/dispatch.go index 2a963225ea..0644348134 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/dispatch.go +++ b/packages/orchestrator/pkg/sandbox/nbd/dispatch.go @@ -1,3 +1,5 @@ +//go:build linux + package nbd import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/path_direct.go b/packages/orchestrator/pkg/sandbox/nbd/path_direct.go index 511f3cbf1d..212ed4fc6e 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/path_direct.go +++ b/packages/orchestrator/pkg/sandbox/nbd/path_direct.go @@ -1,3 +1,5 @@ +//go:build linux + package nbd import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/path_direct_slow_test.go b/packages/orchestrator/pkg/sandbox/nbd/path_direct_slow_test.go index 82a12dacee..062e6c9d46 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/path_direct_slow_test.go +++ b/packages/orchestrator/pkg/sandbox/nbd/path_direct_slow_test.go @@ -1,3 +1,5 @@ +//go:build linux + package nbd_test import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/path_direct_test.go b/packages/orchestrator/pkg/sandbox/nbd/path_direct_test.go index a87c27fd9c..e3f90d85f6 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/path_direct_test.go +++ b/packages/orchestrator/pkg/sandbox/nbd/path_direct_test.go @@ -1,3 +1,5 @@ +//go:build linux + package nbd_test import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/pool.go b/packages/orchestrator/pkg/sandbox/nbd/pool.go index f77dc246fc..112e8969f4 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/pool.go +++ b/packages/orchestrator/pkg/sandbox/nbd/pool.go @@ -1,3 +1,5 @@ +//go:build linux + package nbd import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/testutils/build_device.go b/packages/orchestrator/pkg/sandbox/nbd/testutils/build_device.go index bc4e94ab00..b51a3ffd21 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/testutils/build_device.go +++ b/packages/orchestrator/pkg/sandbox/nbd/testutils/build_device.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/testutils/cleaner.go b/packages/orchestrator/pkg/sandbox/nbd/testutils/cleaner.go index 59cf3ee7a6..0fb94849a1 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/testutils/cleaner.go +++ b/packages/orchestrator/pkg/sandbox/nbd/testutils/cleaner.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/testutils/logger_overlay.go b/packages/orchestrator/pkg/sandbox/nbd/testutils/logger_overlay.go index 11ee5230be..1064480bfb 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/testutils/logger_overlay.go +++ b/packages/orchestrator/pkg/sandbox/nbd/testutils/logger_overlay.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/testutils/mount.go b/packages/orchestrator/pkg/sandbox/nbd/testutils/mount.go index 94e7c90ec6..51b672495d 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/testutils/mount.go +++ b/packages/orchestrator/pkg/sandbox/nbd/testutils/mount.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/testutils/nbd_device.go b/packages/orchestrator/pkg/sandbox/nbd/testutils/nbd_device.go index ea93368eb5..e97dc33709 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/testutils/nbd_device.go +++ b/packages/orchestrator/pkg/sandbox/nbd/testutils/nbd_device.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/testutils/template_rootfs.go b/packages/orchestrator/pkg/sandbox/nbd/testutils/template_rootfs.go index 7a25993769..d11e45dc98 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/testutils/template_rootfs.go +++ b/packages/orchestrator/pkg/sandbox/nbd/testutils/template_rootfs.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/nbd/testutils/zero_device.go b/packages/orchestrator/pkg/sandbox/nbd/testutils/zero_device.go index 357e6e7a89..407c29447a 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/testutils/zero_device.go +++ b/packages/orchestrator/pkg/sandbox/nbd/testutils/zero_device.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/network/egressproxy.go b/packages/orchestrator/pkg/sandbox/network/egressproxy.go index abe057bf23..b21f5c791e 100644 --- a/packages/orchestrator/pkg/sandbox/network/egressproxy.go +++ b/packages/orchestrator/pkg/sandbox/network/egressproxy.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/firewall.go b/packages/orchestrator/pkg/sandbox/network/firewall.go index d248226e73..5889667fdc 100644 --- a/packages/orchestrator/pkg/sandbox/network/firewall.go +++ b/packages/orchestrator/pkg/sandbox/network/firewall.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/host.go b/packages/orchestrator/pkg/sandbox/network/host.go index 41582372dd..0083b25238 100644 --- a/packages/orchestrator/pkg/sandbox/network/host.go +++ b/packages/orchestrator/pkg/sandbox/network/host.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/network.go b/packages/orchestrator/pkg/sandbox/network/network.go index 545608ca0b..7e39467f83 100644 --- a/packages/orchestrator/pkg/sandbox/network/network.go +++ b/packages/orchestrator/pkg/sandbox/network/network.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/pool.go b/packages/orchestrator/pkg/sandbox/network/pool.go index 011cb0d8e2..f0d37b40a2 100644 --- a/packages/orchestrator/pkg/sandbox/network/pool.go +++ b/packages/orchestrator/pkg/sandbox/network/pool.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/pool_test.go b/packages/orchestrator/pkg/sandbox/network/pool_test.go index 0aedde3f6d..fa7199a83b 100644 --- a/packages/orchestrator/pkg/sandbox/network/pool_test.go +++ b/packages/orchestrator/pkg/sandbox/network/pool_test.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/slot.go b/packages/orchestrator/pkg/sandbox/network/slot.go index 052e5b9a8a..eb41543d29 100644 --- a/packages/orchestrator/pkg/sandbox/network/slot.go +++ b/packages/orchestrator/pkg/sandbox/network/slot.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/storage.go b/packages/orchestrator/pkg/sandbox/network/storage.go index fd86a2c7b2..64175117a4 100644 --- a/packages/orchestrator/pkg/sandbox/network/storage.go +++ b/packages/orchestrator/pkg/sandbox/network/storage.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/storage_kv.go b/packages/orchestrator/pkg/sandbox/network/storage_kv.go index fb2acc7724..289bdc433e 100644 --- a/packages/orchestrator/pkg/sandbox/network/storage_kv.go +++ b/packages/orchestrator/pkg/sandbox/network/storage_kv.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/storage_local.go b/packages/orchestrator/pkg/sandbox/network/storage_local.go index 74a2a989b7..675e782de1 100644 --- a/packages/orchestrator/pkg/sandbox/network/storage_local.go +++ b/packages/orchestrator/pkg/sandbox/network/storage_local.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/network/storage_memory.go b/packages/orchestrator/pkg/sandbox/network/storage_memory.go index cde817b8e3..7b59e154c2 100644 --- a/packages/orchestrator/pkg/sandbox/network/storage_memory.go +++ b/packages/orchestrator/pkg/sandbox/network/storage_memory.go @@ -1,3 +1,5 @@ +//go:build linux + package network import ( diff --git a/packages/orchestrator/pkg/sandbox/reclaim.go b/packages/orchestrator/pkg/sandbox/reclaim.go index 936d96601a..f73c15c890 100644 --- a/packages/orchestrator/pkg/sandbox/reclaim.go +++ b/packages/orchestrator/pkg/sandbox/reclaim.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/rootfs/direct.go b/packages/orchestrator/pkg/sandbox/rootfs/direct.go index 39bfdcd8d6..a5867ba4e4 100644 --- a/packages/orchestrator/pkg/sandbox/rootfs/direct.go +++ b/packages/orchestrator/pkg/sandbox/rootfs/direct.go @@ -1,3 +1,5 @@ +//go:build linux + package rootfs import ( diff --git a/packages/orchestrator/pkg/sandbox/rootfs/nbd.go b/packages/orchestrator/pkg/sandbox/rootfs/nbd.go index b186f3941b..c868cbf954 100644 --- a/packages/orchestrator/pkg/sandbox/rootfs/nbd.go +++ b/packages/orchestrator/pkg/sandbox/rootfs/nbd.go @@ -1,3 +1,5 @@ +//go:build linux + package rootfs import ( diff --git a/packages/orchestrator/pkg/sandbox/rootfs/rootfs.go b/packages/orchestrator/pkg/sandbox/rootfs/rootfs.go index b3940536b6..8eb67de833 100644 --- a/packages/orchestrator/pkg/sandbox/rootfs/rootfs.go +++ b/packages/orchestrator/pkg/sandbox/rootfs/rootfs.go @@ -1,3 +1,5 @@ +//go:build linux + package rootfs import ( diff --git a/packages/orchestrator/pkg/sandbox/sandbox.go b/packages/orchestrator/pkg/sandbox/sandbox.go index 31de313a2c..167887600d 100644 --- a/packages/orchestrator/pkg/sandbox/sandbox.go +++ b/packages/orchestrator/pkg/sandbox/sandbox.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/snapshot.go b/packages/orchestrator/pkg/sandbox/snapshot.go index 37ab988e19..ea93b311fb 100644 --- a/packages/orchestrator/pkg/sandbox/snapshot.go +++ b/packages/orchestrator/pkg/sandbox/snapshot.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/template/cache.go b/packages/orchestrator/pkg/sandbox/template/cache.go index ad773a5774..74d2e41054 100644 --- a/packages/orchestrator/pkg/sandbox/template/cache.go +++ b/packages/orchestrator/pkg/sandbox/template/cache.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/template/cache_test.go b/packages/orchestrator/pkg/sandbox/template/cache_test.go index 2a0696afb8..904a2cf716 100644 --- a/packages/orchestrator/pkg/sandbox/template/cache_test.go +++ b/packages/orchestrator/pkg/sandbox/template/cache_test.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/template/file.go b/packages/orchestrator/pkg/sandbox/template/file.go index 303ce506ac..4f4259871b 100644 --- a/packages/orchestrator/pkg/sandbox/template/file.go +++ b/packages/orchestrator/pkg/sandbox/template/file.go @@ -1,3 +1,5 @@ +//go:build linux + package template type File interface { diff --git a/packages/orchestrator/pkg/sandbox/template/local_file.go b/packages/orchestrator/pkg/sandbox/template/local_file.go index 782c01922d..d7cac50669 100644 --- a/packages/orchestrator/pkg/sandbox/template/local_file.go +++ b/packages/orchestrator/pkg/sandbox/template/local_file.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/template/local_template.go b/packages/orchestrator/pkg/sandbox/template/local_template.go index 007a270125..6693a86543 100644 --- a/packages/orchestrator/pkg/sandbox/template/local_template.go +++ b/packages/orchestrator/pkg/sandbox/template/local_template.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/template/mask_template.go b/packages/orchestrator/pkg/sandbox/template/mask_template.go index 47b16b2533..be985c1494 100644 --- a/packages/orchestrator/pkg/sandbox/template/mask_template.go +++ b/packages/orchestrator/pkg/sandbox/template/mask_template.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/file.go b/packages/orchestrator/pkg/sandbox/template/peerserver/file.go index 553b4d6556..c0deb33bdd 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/file.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/file.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/file_test.go b/packages/orchestrator/pkg/sandbox/template/peerserver/file_test.go index ea1082a6e9..929d0e6c61 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/file_test.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/file_test.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/header.go b/packages/orchestrator/pkg/sandbox/template/peerserver/header.go index 835553d18f..2de44d4be9 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/header.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/header.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/header_test.go b/packages/orchestrator/pkg/sandbox/template/peerserver/header_test.go index 20ef9026b3..30fd502e52 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/header_test.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/header_test.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/helpers_test.go b/packages/orchestrator/pkg/sandbox/template/peerserver/helpers_test.go index 14b98779a4..dffbe78bf7 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/helpers_test.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/helpers_test.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver // collectSender accumulates all data passed to Send. diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/metadata.go b/packages/orchestrator/pkg/sandbox/template/peerserver/metadata.go index cf0d736f08..92eb64a215 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/metadata.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/metadata.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/metadata_test.go b/packages/orchestrator/pkg/sandbox/template/peerserver/metadata_test.go index 8baee6f5b0..60be4e3a21 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/metadata_test.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/metadata_test.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/peerserver.go b/packages/orchestrator/pkg/sandbox/template/peerserver/peerserver.go index 49c1a7aa62..b7e0f15650 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/peerserver.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/peerserver.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/resolve.go b/packages/orchestrator/pkg/sandbox/template/peerserver/resolve.go index 72381a1e43..09739dbea4 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/resolve.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/resolve.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/resolve_test.go b/packages/orchestrator/pkg/sandbox/template/peerserver/resolve_test.go index 011ddf27c6..561a622fe8 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/resolve_test.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/resolve_test.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/seekable.go b/packages/orchestrator/pkg/sandbox/template/peerserver/seekable.go index a40e83bb30..51460ee2f8 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/seekable.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/seekable.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/peerserver/seekable_test.go b/packages/orchestrator/pkg/sandbox/template/peerserver/seekable_test.go index c883ea2cd4..6b80649998 100644 --- a/packages/orchestrator/pkg/sandbox/template/peerserver/seekable_test.go +++ b/packages/orchestrator/pkg/sandbox/template/peerserver/seekable_test.go @@ -1,3 +1,5 @@ +//go:build linux + package peerserver import ( diff --git a/packages/orchestrator/pkg/sandbox/template/storage.go b/packages/orchestrator/pkg/sandbox/template/storage.go index 3e0308e178..9396ddd8e8 100644 --- a/packages/orchestrator/pkg/sandbox/template/storage.go +++ b/packages/orchestrator/pkg/sandbox/template/storage.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/template/storage_file.go b/packages/orchestrator/pkg/sandbox/template/storage_file.go index 52eed020f1..1c16c120a9 100644 --- a/packages/orchestrator/pkg/sandbox/template/storage_file.go +++ b/packages/orchestrator/pkg/sandbox/template/storage_file.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/template/storage_template.go b/packages/orchestrator/pkg/sandbox/template/storage_template.go index 319aa15a69..7e18ebf108 100644 --- a/packages/orchestrator/pkg/sandbox/template/storage_template.go +++ b/packages/orchestrator/pkg/sandbox/template/storage_template.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/template/template.go b/packages/orchestrator/pkg/sandbox/template/template.go index 343e5e6ecd..1709361f66 100644 --- a/packages/orchestrator/pkg/sandbox/template/template.go +++ b/packages/orchestrator/pkg/sandbox/template/template.go @@ -1,3 +1,5 @@ +//go:build linux + package template import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/memory/mapping.go b/packages/orchestrator/pkg/sandbox/uffd/memory/mapping.go index 6f798580c6..6a23bb2e01 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/memory/mapping.go +++ b/packages/orchestrator/pkg/sandbox/uffd/memory/mapping.go @@ -1,3 +1,5 @@ +//go:build linux + package memory import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/memory/mapping_host_virt_test.go b/packages/orchestrator/pkg/sandbox/uffd/memory/mapping_host_virt_test.go index e6e36080ab..31d8ec1d4d 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/memory/mapping_host_virt_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/memory/mapping_host_virt_test.go @@ -1,3 +1,5 @@ +//go:build linux + package memory import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/memory/mapping_offset_test.go b/packages/orchestrator/pkg/sandbox/uffd/memory/mapping_offset_test.go index 64ccba3bd2..b05b5eed64 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/memory/mapping_offset_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/memory/mapping_offset_test.go @@ -1,3 +1,5 @@ +//go:build linux + package memory import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/memory/region.go b/packages/orchestrator/pkg/sandbox/uffd/memory/region.go index 821f642471..45a627581c 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/memory/region.go +++ b/packages/orchestrator/pkg/sandbox/uffd/memory/region.go @@ -1,3 +1,5 @@ +//go:build linux + package memory // Region is a mapping of a region of memory of the guest to a region of memory on the host. diff --git a/packages/orchestrator/pkg/sandbox/uffd/memory_backend.go b/packages/orchestrator/pkg/sandbox/uffd/memory_backend.go index 70a113a13d..9475560e18 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/memory_backend.go +++ b/packages/orchestrator/pkg/sandbox/uffd/memory_backend.go @@ -1,3 +1,5 @@ +//go:build linux + package uffd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/noop.go b/packages/orchestrator/pkg/sandbox/uffd/noop.go index c317313c2b..8e5408b6da 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/noop.go +++ b/packages/orchestrator/pkg/sandbox/uffd/noop.go @@ -1,3 +1,5 @@ +//go:build linux + package uffd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/prefetch/prefetcher.go b/packages/orchestrator/pkg/sandbox/uffd/prefetch/prefetcher.go index 51d6ecf989..97d2dfa43f 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/prefetch/prefetcher.go +++ b/packages/orchestrator/pkg/sandbox/uffd/prefetch/prefetcher.go @@ -1,3 +1,5 @@ +//go:build linux + package prefetch import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/testutils/diff_byte.go b/packages/orchestrator/pkg/sandbox/uffd/testutils/diff_byte.go index 68298ea6ea..ca2b4937b8 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/testutils/diff_byte.go +++ b/packages/orchestrator/pkg/sandbox/uffd/testutils/diff_byte.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils // FirstDifferentByte returns the first byte index where a and b differ. diff --git a/packages/orchestrator/pkg/sandbox/uffd/testutils/page_mmap.go b/packages/orchestrator/pkg/sandbox/uffd/testutils/page_mmap.go index ac17b0788f..765739ed2a 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/testutils/page_mmap.go +++ b/packages/orchestrator/pkg/sandbox/uffd/testutils/page_mmap.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/testutils/pagemap.go b/packages/orchestrator/pkg/sandbox/uffd/testutils/pagemap.go index 41d92da7cf..1479daedea 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/testutils/pagemap.go +++ b/packages/orchestrator/pkg/sandbox/uffd/testutils/pagemap.go @@ -1,3 +1,5 @@ +//go:build linux + package testutils import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/uffd.go b/packages/orchestrator/pkg/sandbox/uffd/uffd.go index 2c0ee0fc63..4dd2fc1760 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/uffd.go +++ b/packages/orchestrator/pkg/sandbox/uffd/uffd.go @@ -1,3 +1,5 @@ +//go:build linux + package uffd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/async_wp_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/async_wp_test.go index 4b89dd0191..b385659e4d 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/async_wp_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/async_wp_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/counter_reporter.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/counter_reporter.go index fcce11bcc5..4d3252f0c5 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/counter_reporter.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/counter_reporter.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/deferred.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/deferred.go index 68d8fc3fb4..70d85c03c5 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/deferred.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/deferred.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import "sync" diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/fd.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/fd.go index b2243aa618..05017778a1 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/fd.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/fd.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd // https://docs.kernel.org/admin-guide/mm/userfaultfd.html diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/fd_helpers_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/fd_helpers_test.go index a31eb5501c..3267c2373f 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/fd_helpers_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/fd_helpers_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/harness_child_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/harness_child_test.go index 899a2f2b95..df9fa24efe 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/harness_child_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/harness_child_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/harness_parent_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/harness_parent_test.go index 77b8c357a6..599c803e0e 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/harness_parent_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/harness_parent_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/helpers_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/helpers_test.go index c33fb561e1..f6a8443da3 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/helpers_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/helpers_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/hooks_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/hooks_test.go index 5a6e81c7ca..efaa429708 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/hooks_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/hooks_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd // SetTestFaultHook installs the per-fault hook atomically; pass nil to diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/invoke.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/invoke.go index 71205ca263..dac267d86f 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/invoke.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/invoke.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd // safeInvoke calls fn and returns its result, or nil if fn is nil. diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/missing_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/missing_test.go index 0327ced807..90a5a5c38f 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/missing_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/missing_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/missing_write_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/missing_write_test.go index b9e15508dc..b9e2ac8ebb 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/missing_write_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/missing_write_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/prefault.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/prefault.go index 804442eeee..c088a8d911 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/prefault.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/prefault.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/race_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/race_test.go index 61c65ef1d8..76aebb639f 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/race_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/race_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/remove_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/remove_test.go index a282ceb22d..155dd05b26 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/remove_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/remove_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/rpc_services_test.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/rpc_services_test.go index d6a01b8f2e..9b7e343929 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/rpc_services_test.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/rpc_services_test.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd // RPC service implementations for the cross-process UFFD test harness; diff --git a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/userfaultfd.go b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/userfaultfd.go index 1fbc0182fe..4cc9cf42b5 100644 --- a/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/userfaultfd.go +++ b/packages/orchestrator/pkg/sandbox/uffd/userfaultfd/userfaultfd.go @@ -1,3 +1,5 @@ +//go:build linux + package userfaultfd import ( diff --git a/packages/orchestrator/pkg/sandbox/uploads.go b/packages/orchestrator/pkg/sandbox/uploads.go index 06b2339fca..f04125e236 100644 --- a/packages/orchestrator/pkg/sandbox/uploads.go +++ b/packages/orchestrator/pkg/sandbox/uploads.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/sandbox/uploads_test.go b/packages/orchestrator/pkg/sandbox/uploads_test.go index 056cf2dbaf..5a39552f71 100644 --- a/packages/orchestrator/pkg/sandbox/uploads_test.go +++ b/packages/orchestrator/pkg/sandbox/uploads_test.go @@ -1,3 +1,5 @@ +//go:build linux + package sandbox import ( diff --git a/packages/orchestrator/pkg/server/chunks.go b/packages/orchestrator/pkg/server/chunks.go index 8ce89fb9aa..0e7c3a2085 100644 --- a/packages/orchestrator/pkg/server/chunks.go +++ b/packages/orchestrator/pkg/server/chunks.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/server/chunks_test.go b/packages/orchestrator/pkg/server/chunks_test.go index d950a68065..15a7b76ce3 100644 --- a/packages/orchestrator/pkg/server/chunks_test.go +++ b/packages/orchestrator/pkg/server/chunks_test.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/server/main.go b/packages/orchestrator/pkg/server/main.go index f483ce051c..fb53dee8ce 100644 --- a/packages/orchestrator/pkg/server/main.go +++ b/packages/orchestrator/pkg/server/main.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/server/sandboxes.go b/packages/orchestrator/pkg/server/sandboxes.go index 725008676f..60966a5f37 100644 --- a/packages/orchestrator/pkg/server/sandboxes.go +++ b/packages/orchestrator/pkg/server/sandboxes.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/server/sandboxes_test.go b/packages/orchestrator/pkg/server/sandboxes_test.go index 637b450cc5..17871ca5b4 100644 --- a/packages/orchestrator/pkg/server/sandboxes_test.go +++ b/packages/orchestrator/pkg/server/sandboxes_test.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/server/sandboxes_update_test.go b/packages/orchestrator/pkg/server/sandboxes_update_test.go index 2ad8984019..35b93cedaf 100644 --- a/packages/orchestrator/pkg/server/sandboxes_update_test.go +++ b/packages/orchestrator/pkg/server/sandboxes_update_test.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/server/template_cache.go b/packages/orchestrator/pkg/server/template_cache.go index 5667342144..8be9aa7da7 100644 --- a/packages/orchestrator/pkg/server/template_cache.go +++ b/packages/orchestrator/pkg/server/template_cache.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/server/utils.go b/packages/orchestrator/pkg/server/utils.go index a8a589ac83..3ef314b3e6 100644 --- a/packages/orchestrator/pkg/server/utils.go +++ b/packages/orchestrator/pkg/server/utils.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/service/info.go b/packages/orchestrator/pkg/service/info.go index 92404b9071..2e45b1153d 100644 --- a/packages/orchestrator/pkg/service/info.go +++ b/packages/orchestrator/pkg/service/info.go @@ -1,3 +1,5 @@ +//go:build linux + package service import ( diff --git a/packages/orchestrator/pkg/service/service_info.go b/packages/orchestrator/pkg/service/service_info.go index e89dd0ac42..3fc14d3043 100644 --- a/packages/orchestrator/pkg/service/service_info.go +++ b/packages/orchestrator/pkg/service/service_info.go @@ -1,3 +1,5 @@ +//go:build linux + package service import ( diff --git a/packages/orchestrator/pkg/tcpfirewall/handlers.go b/packages/orchestrator/pkg/tcpfirewall/handlers.go index 84d76592cf..6d7997c228 100644 --- a/packages/orchestrator/pkg/tcpfirewall/handlers.go +++ b/packages/orchestrator/pkg/tcpfirewall/handlers.go @@ -1,3 +1,5 @@ +//go:build linux + package tcpfirewall import ( diff --git a/packages/orchestrator/pkg/tcpfirewall/handlers_test.go b/packages/orchestrator/pkg/tcpfirewall/handlers_test.go index 91b71206bc..46bc368c3f 100644 --- a/packages/orchestrator/pkg/tcpfirewall/handlers_test.go +++ b/packages/orchestrator/pkg/tcpfirewall/handlers_test.go @@ -1,3 +1,5 @@ +//go:build linux + package tcpfirewall import ( diff --git a/packages/orchestrator/pkg/tcpfirewall/listener.go b/packages/orchestrator/pkg/tcpfirewall/listener.go index d495fedad7..36c9c1000d 100644 --- a/packages/orchestrator/pkg/tcpfirewall/listener.go +++ b/packages/orchestrator/pkg/tcpfirewall/listener.go @@ -1,3 +1,5 @@ +//go:build linux + package tcpfirewall import ( diff --git a/packages/orchestrator/pkg/tcpfirewall/metrics.go b/packages/orchestrator/pkg/tcpfirewall/metrics.go index 31f941e5be..265151fc9b 100644 --- a/packages/orchestrator/pkg/tcpfirewall/metrics.go +++ b/packages/orchestrator/pkg/tcpfirewall/metrics.go @@ -1,3 +1,5 @@ +//go:build linux + package tcpfirewall import ( diff --git a/packages/orchestrator/pkg/tcpfirewall/proxy.go b/packages/orchestrator/pkg/tcpfirewall/proxy.go index f949786d85..ecb9e963b0 100644 --- a/packages/orchestrator/pkg/tcpfirewall/proxy.go +++ b/packages/orchestrator/pkg/tcpfirewall/proxy.go @@ -1,3 +1,5 @@ +//go:build linux + package tcpfirewall import ( diff --git a/packages/orchestrator/pkg/tcpfirewall/proxy_test.go b/packages/orchestrator/pkg/tcpfirewall/proxy_test.go index c9b5c8aecf..628493a511 100644 --- a/packages/orchestrator/pkg/tcpfirewall/proxy_test.go +++ b/packages/orchestrator/pkg/tcpfirewall/proxy_test.go @@ -1,3 +1,5 @@ +//go:build linux + package tcpfirewall import ( diff --git a/packages/orchestrator/pkg/tcpfirewall/utils.go b/packages/orchestrator/pkg/tcpfirewall/utils.go index 7754423066..56f42ff85b 100644 --- a/packages/orchestrator/pkg/tcpfirewall/utils.go +++ b/packages/orchestrator/pkg/tcpfirewall/utils.go @@ -1,3 +1,5 @@ +//go:build linux + package tcpfirewall import ( diff --git a/packages/orchestrator/pkg/template/build/buildcontext/context.go b/packages/orchestrator/pkg/template/build/buildcontext/context.go index 99ffcee9a2..77fba30fa3 100644 --- a/packages/orchestrator/pkg/template/build/buildcontext/context.go +++ b/packages/orchestrator/pkg/template/build/buildcontext/context.go @@ -1,3 +1,5 @@ +//go:build linux + package buildcontext import ( diff --git a/packages/orchestrator/pkg/template/build/builder.go b/packages/orchestrator/pkg/template/build/builder.go index 425ab7501c..5d9900d472 100644 --- a/packages/orchestrator/pkg/template/build/builder.go +++ b/packages/orchestrator/pkg/template/build/builder.go @@ -1,3 +1,5 @@ +//go:build linux + package build import ( diff --git a/packages/orchestrator/pkg/template/build/builderrors/errors.go b/packages/orchestrator/pkg/template/build/builderrors/errors.go index 29b87c0f5e..5a9852fa5d 100644 --- a/packages/orchestrator/pkg/template/build/builderrors/errors.go +++ b/packages/orchestrator/pkg/template/build/builderrors/errors.go @@ -1,3 +1,5 @@ +//go:build linux + package builderrors import ( diff --git a/packages/orchestrator/pkg/template/build/commands/command.go b/packages/orchestrator/pkg/template/build/commands/command.go index 705921c2fd..0734335cf3 100644 --- a/packages/orchestrator/pkg/template/build/commands/command.go +++ b/packages/orchestrator/pkg/template/build/commands/command.go @@ -1,3 +1,5 @@ +//go:build linux + package commands import ( diff --git a/packages/orchestrator/pkg/template/build/commands/copy.go b/packages/orchestrator/pkg/template/build/commands/copy.go index 86849a39ea..7db4bdddd2 100644 --- a/packages/orchestrator/pkg/template/build/commands/copy.go +++ b/packages/orchestrator/pkg/template/build/commands/copy.go @@ -1,3 +1,5 @@ +//go:build linux + package commands import ( diff --git a/packages/orchestrator/pkg/template/build/commands/copy_test.go b/packages/orchestrator/pkg/template/build/commands/copy_test.go index 6a8d88f3d4..7a0864c405 100644 --- a/packages/orchestrator/pkg/template/build/commands/copy_test.go +++ b/packages/orchestrator/pkg/template/build/commands/copy_test.go @@ -1,3 +1,5 @@ +//go:build linux + package commands import ( diff --git a/packages/orchestrator/pkg/template/build/commands/env.go b/packages/orchestrator/pkg/template/build/commands/env.go index 0d9131fa29..beda4ba692 100644 --- a/packages/orchestrator/pkg/template/build/commands/env.go +++ b/packages/orchestrator/pkg/template/build/commands/env.go @@ -1,3 +1,5 @@ +//go:build linux + package commands import ( diff --git a/packages/orchestrator/pkg/template/build/commands/executor.go b/packages/orchestrator/pkg/template/build/commands/executor.go index 803c872fa4..a3a6a827ba 100644 --- a/packages/orchestrator/pkg/template/build/commands/executor.go +++ b/packages/orchestrator/pkg/template/build/commands/executor.go @@ -1,3 +1,5 @@ +//go:build linux + package commands import ( diff --git a/packages/orchestrator/pkg/template/build/commands/run.go b/packages/orchestrator/pkg/template/build/commands/run.go index 1eaaeb4fec..9551547680 100644 --- a/packages/orchestrator/pkg/template/build/commands/run.go +++ b/packages/orchestrator/pkg/template/build/commands/run.go @@ -1,3 +1,5 @@ +//go:build linux + package commands import ( diff --git a/packages/orchestrator/pkg/template/build/commands/user.go b/packages/orchestrator/pkg/template/build/commands/user.go index 01c5c4a424..0b1f0cb94e 100644 --- a/packages/orchestrator/pkg/template/build/commands/user.go +++ b/packages/orchestrator/pkg/template/build/commands/user.go @@ -1,3 +1,5 @@ +//go:build linux + package commands import ( diff --git a/packages/orchestrator/pkg/template/build/commands/workdir.go b/packages/orchestrator/pkg/template/build/commands/workdir.go index a224feb5c1..592754b89a 100644 --- a/packages/orchestrator/pkg/template/build/commands/workdir.go +++ b/packages/orchestrator/pkg/template/build/commands/workdir.go @@ -1,3 +1,5 @@ +//go:build linux + package commands import ( diff --git a/packages/orchestrator/pkg/template/build/core/filesystem/ext4.go b/packages/orchestrator/pkg/template/build/core/filesystem/ext4.go index 567c5e10e9..6afd447576 100644 --- a/packages/orchestrator/pkg/template/build/core/filesystem/ext4.go +++ b/packages/orchestrator/pkg/template/build/core/filesystem/ext4.go @@ -1,3 +1,5 @@ +//go:build linux + package filesystem import ( diff --git a/packages/orchestrator/pkg/template/build/core/filesystem/ext4_test.go b/packages/orchestrator/pkg/template/build/core/filesystem/ext4_test.go index b231fa6a8f..63eeab19a7 100644 --- a/packages/orchestrator/pkg/template/build/core/filesystem/ext4_test.go +++ b/packages/orchestrator/pkg/template/build/core/filesystem/ext4_test.go @@ -1,3 +1,5 @@ +//go:build linux + package filesystem import ( diff --git a/packages/orchestrator/pkg/template/build/core/oci/layer_file.go b/packages/orchestrator/pkg/template/build/core/oci/layer_file.go index 57fdc50fe9..5020f1c4a0 100644 --- a/packages/orchestrator/pkg/template/build/core/oci/layer_file.go +++ b/packages/orchestrator/pkg/template/build/core/oci/layer_file.go @@ -1,3 +1,5 @@ +//go:build linux + package oci import ( diff --git a/packages/orchestrator/pkg/template/build/core/oci/oci.go b/packages/orchestrator/pkg/template/build/core/oci/oci.go index dc57314c62..c4fa89fd41 100644 --- a/packages/orchestrator/pkg/template/build/core/oci/oci.go +++ b/packages/orchestrator/pkg/template/build/core/oci/oci.go @@ -1,3 +1,5 @@ +//go:build linux + package oci import ( diff --git a/packages/orchestrator/pkg/template/build/core/oci/oci_test.go b/packages/orchestrator/pkg/template/build/core/oci/oci_test.go index 5b774f8682..b1646020ad 100644 --- a/packages/orchestrator/pkg/template/build/core/oci/oci_test.go +++ b/packages/orchestrator/pkg/template/build/core/oci/oci_test.go @@ -1,3 +1,5 @@ +//go:build linux + package oci import ( diff --git a/packages/orchestrator/pkg/template/build/core/rootfs/rootfs.go b/packages/orchestrator/pkg/template/build/core/rootfs/rootfs.go index 27026f1ab9..1499a61c13 100644 --- a/packages/orchestrator/pkg/template/build/core/rootfs/rootfs.go +++ b/packages/orchestrator/pkg/template/build/core/rootfs/rootfs.go @@ -1,3 +1,5 @@ +//go:build linux + package rootfs import ( diff --git a/packages/orchestrator/pkg/template/build/core/rootfs/rootfs_test.go b/packages/orchestrator/pkg/template/build/core/rootfs/rootfs_test.go index 7934dc9770..c72212c07c 100644 --- a/packages/orchestrator/pkg/template/build/core/rootfs/rootfs_test.go +++ b/packages/orchestrator/pkg/template/build/core/rootfs/rootfs_test.go @@ -1,3 +1,5 @@ +//go:build linux + package rootfs import ( diff --git a/packages/orchestrator/pkg/template/build/core/rootfs/templates.go b/packages/orchestrator/pkg/template/build/core/rootfs/templates.go index b94c3e1772..49e64a2563 100644 --- a/packages/orchestrator/pkg/template/build/core/rootfs/templates.go +++ b/packages/orchestrator/pkg/template/build/core/rootfs/templates.go @@ -1,3 +1,5 @@ +//go:build linux + package rootfs import ( diff --git a/packages/orchestrator/pkg/template/build/layer/create_sandbox.go b/packages/orchestrator/pkg/template/build/layer/create_sandbox.go index e0efea6739..a57a737b6e 100644 --- a/packages/orchestrator/pkg/template/build/layer/create_sandbox.go +++ b/packages/orchestrator/pkg/template/build/layer/create_sandbox.go @@ -1,3 +1,5 @@ +//go:build linux + package layer import ( diff --git a/packages/orchestrator/pkg/template/build/layer/function_action.go b/packages/orchestrator/pkg/template/build/layer/function_action.go index 0fc0dddf36..b2e6a0efce 100644 --- a/packages/orchestrator/pkg/template/build/layer/function_action.go +++ b/packages/orchestrator/pkg/template/build/layer/function_action.go @@ -1,3 +1,5 @@ +//go:build linux + package layer import ( diff --git a/packages/orchestrator/pkg/template/build/layer/interfaces.go b/packages/orchestrator/pkg/template/build/layer/interfaces.go index 5f17a6ea2a..6ad5de6c9a 100644 --- a/packages/orchestrator/pkg/template/build/layer/interfaces.go +++ b/packages/orchestrator/pkg/template/build/layer/interfaces.go @@ -1,3 +1,5 @@ +//go:build linux + package layer import ( diff --git a/packages/orchestrator/pkg/template/build/layer/layer_executor.go b/packages/orchestrator/pkg/template/build/layer/layer_executor.go index bd2f2426be..f9d72fa266 100644 --- a/packages/orchestrator/pkg/template/build/layer/layer_executor.go +++ b/packages/orchestrator/pkg/template/build/layer/layer_executor.go @@ -1,3 +1,5 @@ +//go:build linux + package layer import ( diff --git a/packages/orchestrator/pkg/template/build/layer/resume_sandbox.go b/packages/orchestrator/pkg/template/build/layer/resume_sandbox.go index 2de097dbc5..9824040830 100644 --- a/packages/orchestrator/pkg/template/build/layer/resume_sandbox.go +++ b/packages/orchestrator/pkg/template/build/layer/resume_sandbox.go @@ -1,3 +1,5 @@ +//go:build linux + package layer import ( diff --git a/packages/orchestrator/pkg/template/build/layer/source_template.go b/packages/orchestrator/pkg/template/build/layer/source_template.go index aee04554dc..e1bf230865 100644 --- a/packages/orchestrator/pkg/template/build/layer/source_template.go +++ b/packages/orchestrator/pkg/template/build/layer/source_template.go @@ -1,3 +1,5 @@ +//go:build linux + package layer import ( diff --git a/packages/orchestrator/pkg/template/build/phases/base/builder.go b/packages/orchestrator/pkg/template/build/phases/base/builder.go index 7638d9b1cf..9f4edf5a0b 100644 --- a/packages/orchestrator/pkg/template/build/phases/base/builder.go +++ b/packages/orchestrator/pkg/template/build/phases/base/builder.go @@ -1,3 +1,5 @@ +//go:build linux + package base import ( diff --git a/packages/orchestrator/pkg/template/build/phases/base/files.go b/packages/orchestrator/pkg/template/build/phases/base/files.go index 700a7937b6..5a7ae4554a 100644 --- a/packages/orchestrator/pkg/template/build/phases/base/files.go +++ b/packages/orchestrator/pkg/template/build/phases/base/files.go @@ -1,3 +1,5 @@ +//go:build linux + package base import ( diff --git a/packages/orchestrator/pkg/template/build/phases/base/hash.go b/packages/orchestrator/pkg/template/build/phases/base/hash.go index dec35e27f4..62d5284022 100644 --- a/packages/orchestrator/pkg/template/build/phases/base/hash.go +++ b/packages/orchestrator/pkg/template/build/phases/base/hash.go @@ -1,3 +1,5 @@ +//go:build linux + package base import ( diff --git a/packages/orchestrator/pkg/template/build/phases/base/provision.go b/packages/orchestrator/pkg/template/build/phases/base/provision.go index 227ca92ae3..abe9f9e524 100644 --- a/packages/orchestrator/pkg/template/build/phases/base/provision.go +++ b/packages/orchestrator/pkg/template/build/phases/base/provision.go @@ -1,3 +1,5 @@ +//go:build linux + package base import ( diff --git a/packages/orchestrator/pkg/template/build/phases/errors.go b/packages/orchestrator/pkg/template/build/phases/errors.go index 1d76a753ac..a697712257 100644 --- a/packages/orchestrator/pkg/template/build/phases/errors.go +++ b/packages/orchestrator/pkg/template/build/phases/errors.go @@ -1,3 +1,5 @@ +//go:build linux + package phases import ( diff --git a/packages/orchestrator/pkg/template/build/phases/finalize/builder.go b/packages/orchestrator/pkg/template/build/phases/finalize/builder.go index 1cc0cb19cd..d4fe9ac6bb 100644 --- a/packages/orchestrator/pkg/template/build/phases/finalize/builder.go +++ b/packages/orchestrator/pkg/template/build/phases/finalize/builder.go @@ -1,3 +1,5 @@ +//go:build linux + package finalize import ( diff --git a/packages/orchestrator/pkg/template/build/phases/finalize/configure.go b/packages/orchestrator/pkg/template/build/phases/finalize/configure.go index 93e4857bbe..edba3cdc04 100644 --- a/packages/orchestrator/pkg/template/build/phases/finalize/configure.go +++ b/packages/orchestrator/pkg/template/build/phases/finalize/configure.go @@ -1,3 +1,5 @@ +//go:build linux + package finalize import ( diff --git a/packages/orchestrator/pkg/template/build/phases/finalize/ready.go b/packages/orchestrator/pkg/template/build/phases/finalize/ready.go index 3f1140cca0..6dbd200810 100644 --- a/packages/orchestrator/pkg/template/build/phases/finalize/ready.go +++ b/packages/orchestrator/pkg/template/build/phases/finalize/ready.go @@ -1,3 +1,5 @@ +//go:build linux + package finalize import ( diff --git a/packages/orchestrator/pkg/template/build/phases/optimize/builder.go b/packages/orchestrator/pkg/template/build/phases/optimize/builder.go index 95ca86823e..78f38d634b 100644 --- a/packages/orchestrator/pkg/template/build/phases/optimize/builder.go +++ b/packages/orchestrator/pkg/template/build/phases/optimize/builder.go @@ -1,3 +1,5 @@ +//go:build linux + package optimize import ( diff --git a/packages/orchestrator/pkg/template/build/phases/optimize/prefetch.go b/packages/orchestrator/pkg/template/build/phases/optimize/prefetch.go index bcc11f2e13..5d87c2a518 100644 --- a/packages/orchestrator/pkg/template/build/phases/optimize/prefetch.go +++ b/packages/orchestrator/pkg/template/build/phases/optimize/prefetch.go @@ -1,3 +1,5 @@ +//go:build linux + package optimize import ( diff --git a/packages/orchestrator/pkg/template/build/phases/optimize/prefetch_test.go b/packages/orchestrator/pkg/template/build/phases/optimize/prefetch_test.go index e44d9822a5..e5df74e880 100644 --- a/packages/orchestrator/pkg/template/build/phases/optimize/prefetch_test.go +++ b/packages/orchestrator/pkg/template/build/phases/optimize/prefetch_test.go @@ -1,3 +1,5 @@ +//go:build linux + package optimize import ( diff --git a/packages/orchestrator/pkg/template/build/phases/phase.go b/packages/orchestrator/pkg/template/build/phases/phase.go index d88d61dffc..8bf7433229 100644 --- a/packages/orchestrator/pkg/template/build/phases/phase.go +++ b/packages/orchestrator/pkg/template/build/phases/phase.go @@ -1,3 +1,5 @@ +//go:build linux + package phases import ( diff --git a/packages/orchestrator/pkg/template/build/phases/steps/builder.go b/packages/orchestrator/pkg/template/build/phases/steps/builder.go index 507312c5ac..b911aab0fc 100644 --- a/packages/orchestrator/pkg/template/build/phases/steps/builder.go +++ b/packages/orchestrator/pkg/template/build/phases/steps/builder.go @@ -1,3 +1,5 @@ +//go:build linux + package steps import ( diff --git a/packages/orchestrator/pkg/template/build/phases/steps/factory.go b/packages/orchestrator/pkg/template/build/phases/steps/factory.go index c2261d1f86..d37d575e4b 100644 --- a/packages/orchestrator/pkg/template/build/phases/steps/factory.go +++ b/packages/orchestrator/pkg/template/build/phases/steps/factory.go @@ -1,3 +1,5 @@ +//go:build linux + package steps import ( diff --git a/packages/orchestrator/pkg/template/build/phases/steps/hash.go b/packages/orchestrator/pkg/template/build/phases/steps/hash.go index cf55dcae57..56361835d7 100644 --- a/packages/orchestrator/pkg/template/build/phases/steps/hash.go +++ b/packages/orchestrator/pkg/template/build/phases/steps/hash.go @@ -1,3 +1,5 @@ +//go:build linux + package steps import ( diff --git a/packages/orchestrator/pkg/template/build/phases/user/builder.go b/packages/orchestrator/pkg/template/build/phases/user/builder.go index 121d2411c2..716cc87d6b 100644 --- a/packages/orchestrator/pkg/template/build/phases/user/builder.go +++ b/packages/orchestrator/pkg/template/build/phases/user/builder.go @@ -1,3 +1,5 @@ +//go:build linux + package user import ( diff --git a/packages/orchestrator/pkg/template/build/phases/user/hash.go b/packages/orchestrator/pkg/template/build/phases/user/hash.go index ea836c4c5f..144814270f 100644 --- a/packages/orchestrator/pkg/template/build/phases/user/hash.go +++ b/packages/orchestrator/pkg/template/build/phases/user/hash.go @@ -1,3 +1,5 @@ +//go:build linux + package user import ( diff --git a/packages/orchestrator/pkg/template/build/phases/utils.go b/packages/orchestrator/pkg/template/build/phases/utils.go index b7409a440a..47a1b14c58 100644 --- a/packages/orchestrator/pkg/template/build/phases/utils.go +++ b/packages/orchestrator/pkg/template/build/phases/utils.go @@ -1,3 +1,5 @@ +//go:build linux + package phases import "strconv" diff --git a/packages/orchestrator/pkg/template/build/sandboxtools/command.go b/packages/orchestrator/pkg/template/build/sandboxtools/command.go index c67677c358..558761ab64 100644 --- a/packages/orchestrator/pkg/template/build/sandboxtools/command.go +++ b/packages/orchestrator/pkg/template/build/sandboxtools/command.go @@ -1,3 +1,5 @@ +//go:build linux + package sandboxtools import ( diff --git a/packages/orchestrator/pkg/template/build/sandboxtools/file.go b/packages/orchestrator/pkg/template/build/sandboxtools/file.go index 35d9bf89e7..b96aaded80 100644 --- a/packages/orchestrator/pkg/template/build/sandboxtools/file.go +++ b/packages/orchestrator/pkg/template/build/sandboxtools/file.go @@ -1,3 +1,5 @@ +//go:build linux + package sandboxtools import ( diff --git a/packages/orchestrator/pkg/template/build/storage/cache/cache.go b/packages/orchestrator/pkg/template/build/storage/cache/cache.go index 15268e9b26..dc37b6e33b 100644 --- a/packages/orchestrator/pkg/template/build/storage/cache/cache.go +++ b/packages/orchestrator/pkg/template/build/storage/cache/cache.go @@ -1,3 +1,5 @@ +//go:build linux + package cache import ( diff --git a/packages/orchestrator/pkg/template/metadata/prefetch.go b/packages/orchestrator/pkg/template/metadata/prefetch.go index 3799049a38..b12abc75cd 100644 --- a/packages/orchestrator/pkg/template/metadata/prefetch.go +++ b/packages/orchestrator/pkg/template/metadata/prefetch.go @@ -1,3 +1,5 @@ +//go:build linux + package metadata import ( diff --git a/packages/orchestrator/pkg/template/metadata/template_metadata.go b/packages/orchestrator/pkg/template/metadata/template_metadata.go index 8adcb33176..6d1a63f7d6 100644 --- a/packages/orchestrator/pkg/template/metadata/template_metadata.go +++ b/packages/orchestrator/pkg/template/metadata/template_metadata.go @@ -1,3 +1,5 @@ +//go:build linux + package metadata import ( diff --git a/packages/orchestrator/pkg/template/metadata/template_metadata_test.go b/packages/orchestrator/pkg/template/metadata/template_metadata_test.go index 9955f9bfa7..a797255340 100644 --- a/packages/orchestrator/pkg/template/metadata/template_metadata_test.go +++ b/packages/orchestrator/pkg/template/metadata/template_metadata_test.go @@ -1,3 +1,5 @@ +//go:build linux + package metadata import ( diff --git a/packages/orchestrator/pkg/template/server/create_template.go b/packages/orchestrator/pkg/template/server/create_template.go index 1ad617ed70..6ae974f65a 100644 --- a/packages/orchestrator/pkg/template/server/create_template.go +++ b/packages/orchestrator/pkg/template/server/create_template.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/template/server/delete_template.go b/packages/orchestrator/pkg/template/server/delete_template.go index 2e2c4ed2e3..2165fd68f6 100644 --- a/packages/orchestrator/pkg/template/server/delete_template.go +++ b/packages/orchestrator/pkg/template/server/delete_template.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/template/server/main.go b/packages/orchestrator/pkg/template/server/main.go index 1ece7defda..2013af14fa 100644 --- a/packages/orchestrator/pkg/template/server/main.go +++ b/packages/orchestrator/pkg/template/server/main.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/template/server/template_status.go b/packages/orchestrator/pkg/template/server/template_status.go index 08f4c75d46..b162ef29fa 100644 --- a/packages/orchestrator/pkg/template/server/template_status.go +++ b/packages/orchestrator/pkg/template/server/template_status.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/template/server/template_status_test.go b/packages/orchestrator/pkg/template/server/template_status_test.go index 39df9214d0..c87aa2eace 100644 --- a/packages/orchestrator/pkg/template/server/template_status_test.go +++ b/packages/orchestrator/pkg/template/server/template_status_test.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/template/server/upload_layer_files_template.go b/packages/orchestrator/pkg/template/server/upload_layer_files_template.go index 345d170733..2776500077 100644 --- a/packages/orchestrator/pkg/template/server/upload_layer_files_template.go +++ b/packages/orchestrator/pkg/template/server/upload_layer_files_template.go @@ -1,3 +1,5 @@ +//go:build linux + package server import ( diff --git a/packages/orchestrator/pkg/volumes/dir_create.go b/packages/orchestrator/pkg/volumes/dir_create.go index f6f10a803b..78c6e23986 100644 --- a/packages/orchestrator/pkg/volumes/dir_create.go +++ b/packages/orchestrator/pkg/volumes/dir_create.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/dir_create_test.go b/packages/orchestrator/pkg/volumes/dir_create_test.go index b1d403133c..43d5c7ac53 100644 --- a/packages/orchestrator/pkg/volumes/dir_create_test.go +++ b/packages/orchestrator/pkg/volumes/dir_create_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/dir_list.go b/packages/orchestrator/pkg/volumes/dir_list.go index f77141c311..7780460eea 100644 --- a/packages/orchestrator/pkg/volumes/dir_list.go +++ b/packages/orchestrator/pkg/volumes/dir_list.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/dir_list_test.go b/packages/orchestrator/pkg/volumes/dir_list_test.go index 52f15f926e..71ebe10a41 100644 --- a/packages/orchestrator/pkg/volumes/dir_list_test.go +++ b/packages/orchestrator/pkg/volumes/dir_list_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/errors.go b/packages/orchestrator/pkg/volumes/errors.go index dbb2e52396..801b52ea25 100644 --- a/packages/orchestrator/pkg/volumes/errors.go +++ b/packages/orchestrator/pkg/volumes/errors.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/file_create.go b/packages/orchestrator/pkg/volumes/file_create.go index 7156b2c428..9a7da7a375 100644 --- a/packages/orchestrator/pkg/volumes/file_create.go +++ b/packages/orchestrator/pkg/volumes/file_create.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/file_create_test.go b/packages/orchestrator/pkg/volumes/file_create_test.go index fd036d3f2e..2a3eada67f 100644 --- a/packages/orchestrator/pkg/volumes/file_create_test.go +++ b/packages/orchestrator/pkg/volumes/file_create_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/file_get.go b/packages/orchestrator/pkg/volumes/file_get.go index 82807208a2..f8ae64110a 100644 --- a/packages/orchestrator/pkg/volumes/file_get.go +++ b/packages/orchestrator/pkg/volumes/file_get.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/file_get_test.go b/packages/orchestrator/pkg/volumes/file_get_test.go index 33db0c1ef8..6a3b94d6f0 100644 --- a/packages/orchestrator/pkg/volumes/file_get_test.go +++ b/packages/orchestrator/pkg/volumes/file_get_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/path_delete.go b/packages/orchestrator/pkg/volumes/path_delete.go index 418bd9e107..6785b7e56d 100644 --- a/packages/orchestrator/pkg/volumes/path_delete.go +++ b/packages/orchestrator/pkg/volumes/path_delete.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/path_delete_test.go b/packages/orchestrator/pkg/volumes/path_delete_test.go index ccc888ddf0..28aebc48b5 100644 --- a/packages/orchestrator/pkg/volumes/path_delete_test.go +++ b/packages/orchestrator/pkg/volumes/path_delete_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/path_stat.go b/packages/orchestrator/pkg/volumes/path_stat.go index 9ee94a4e10..08244e940f 100644 --- a/packages/orchestrator/pkg/volumes/path_stat.go +++ b/packages/orchestrator/pkg/volumes/path_stat.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/path_stat_test.go b/packages/orchestrator/pkg/volumes/path_stat_test.go index 85e404e617..7b243915f3 100644 --- a/packages/orchestrator/pkg/volumes/path_stat_test.go +++ b/packages/orchestrator/pkg/volumes/path_stat_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/path_update.go b/packages/orchestrator/pkg/volumes/path_update.go index 022995a1ba..ad530d1df8 100644 --- a/packages/orchestrator/pkg/volumes/path_update.go +++ b/packages/orchestrator/pkg/volumes/path_update.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/service.go b/packages/orchestrator/pkg/volumes/service.go index 0e7ef5b8fe..645fed0494 100644 --- a/packages/orchestrator/pkg/volumes/service.go +++ b/packages/orchestrator/pkg/volumes/service.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/service_test.go b/packages/orchestrator/pkg/volumes/service_test.go index be301905b6..9c21926092 100644 --- a/packages/orchestrator/pkg/volumes/service_test.go +++ b/packages/orchestrator/pkg/volumes/service_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/utils_test.go b/packages/orchestrator/pkg/volumes/utils_test.go index 3661e377b1..97472b62ab 100644 --- a/packages/orchestrator/pkg/volumes/utils_test.go +++ b/packages/orchestrator/pkg/volumes/utils_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/volume_create.go b/packages/orchestrator/pkg/volumes/volume_create.go index 0865bcc0b0..42c2145d94 100644 --- a/packages/orchestrator/pkg/volumes/volume_create.go +++ b/packages/orchestrator/pkg/volumes/volume_create.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/volume_delete.go b/packages/orchestrator/pkg/volumes/volume_delete.go index 2958995fa3..ba1187bf9f 100644 --- a/packages/orchestrator/pkg/volumes/volume_delete.go +++ b/packages/orchestrator/pkg/volumes/volume_delete.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import ( diff --git a/packages/orchestrator/pkg/volumes/volume_test.go b/packages/orchestrator/pkg/volumes/volume_test.go index 948a969cbf..477c491768 100644 --- a/packages/orchestrator/pkg/volumes/volume_test.go +++ b/packages/orchestrator/pkg/volumes/volume_test.go @@ -1,3 +1,5 @@ +//go:build linux + package volumes import (