moby/pkg/chrootarchive/archive_unix_nolinux_test.go
Marat Radchenko 9e3ed7b429 pkg/chrootarchive: fix Darwin build
Before this commit, `doPack`, `doUnpack` and `doUnpackLayer` were not implemented for Darwin, causing build failure.

This change allows all non-Linux Unixes to use FreeBSD reexec-based pack/unpack implementation

See also: moby/buildkit#4059
See also: 8b843732b3

Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
2023-09-28 16:23:33 +03:00

16 lines
241 B
Go

//go:build unix && !linux
package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive"
import (
"testing"
"github.com/docker/docker/pkg/reexec"
)
func TestMain(m *testing.M) {
if reexec.Init() {
return
}
m.Run()
}