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>
This commit is contained in:
parent
51f0e7b0e4
commit
9e3ed7b429
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
//go:build unix && !linux
|
||||
|
||||
package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive"
|
||||
|
||||
import (
|
||||
|
@ -15,9 +17,9 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
packCmd = "freebsd-pack-in-chroot"
|
||||
unpackCmd = "freebsd-unpack-in-chroot"
|
||||
unpackLayerCmd = "freebsd-unpack-layer-in-chroot"
|
||||
packCmd = "chrootarchive-pack-in-chroot"
|
||||
unpackCmd = "chrootarchive-unpack-in-chroot"
|
||||
unpackLayerCmd = "chrootarchive-unpack-layer-in-chroot"
|
||||
)
|
||||
|
||||
func init() {
|
|
@ -1,3 +1,5 @@
|
|||
//go:build unix && !linux
|
||||
|
||||
package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive"
|
||||
|
||||
import (
|
Loading…
Reference in a new issue