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 <marat@slonopotamus.org>
  • Loading branch information
slonopotamus committed Aug 3, 2023
1 parent eb3ace9 commit 3943872
Show file tree
Hide file tree
Showing 2 changed files with 5 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
File renamed without changes.

0 comments on commit 3943872

Please sign in to comment.