Skip to content

Commit

Permalink
pkg/chrootarchive: fix Darwin build
Browse files Browse the repository at this point in the history
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: 8b84373

Signed-off-by: Marat Radchenko <[email protected]>
  • Loading branch information
slonopotamus committed Sep 10, 2023
1 parent 6ce5aa1 commit 3c4859c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !linux && !windows

package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive"

import (
Expand All @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !linux && !windows

package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive"

import (
Expand Down

0 comments on commit 3c4859c

Please sign in to comment.