File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 22
33GIT_VERSION ?= $(shell git describe --always --dirty)
44VERSION_LDFLAGS =-X github.com/crc-org/macadam/pkg/cmdline.gitVersion=$(GIT_VERSION )
5- MACADAM_LDFLAGS = \
6- $(VERSION_LDFLAGS ) \
7- -X github.com/containers/common/pkg/config.additionalHelperBinariesDir=$(HELPER_BINARIES_DIR )
85# opengpg and btrfs support are used by github.com/containers/image and
96# github.com/containers/storage when container images are fetched.
107# These require external C libraries and their headers, it's simpler to disable
@@ -38,15 +35,13 @@ clean:
3835
3936bin/macadam-darwin-amd64 : GOOS=darwin
4037bin/macadam-darwin-amd64 : GOARCH=amd64
41- bin/macadam-darwin-amd64 : HELPER_BINARIES_DIR=/opt/macadam/bin
4238bin/macadam-darwin-amd64 : force-build
43- GOARCH=$(GOARCH ) GOOS=$(GOOS ) go build -tags " $( BUILDTAGS) " -ldflags " $( MACADAM_LDFLAGS ) " -o bin/macadam-$(GOOS ) -$(GOARCH ) ./cmd/macadam
39+ GOARCH=$(GOARCH ) GOOS=$(GOOS ) go build -tags " $( BUILDTAGS) " -ldflags " $( VERSION_LDFLAGS ) " -o bin/macadam-$(GOOS ) -$(GOARCH ) ./cmd/macadam
4440
4541bin/macadam-darwin-arm64 : GOOS=darwin
4642bin/macadam-darwin-arm64 : GOARCH=arm64
47- bin/macadam-darwin-arm64 : HELPER_BINARIES_DIR=/opt/macadam/bin
4843bin/macadam-darwin-arm64 : force-build
49- GOARCH=$(GOARCH ) GOOS=$(GOOS ) go build -tags " $( BUILDTAGS) " -ldflags " $( MACADAM_LDFLAGS ) " -o bin/macadam-$(GOOS ) -$(GOARCH ) ./cmd/macadam
44+ GOARCH=$(GOARCH ) GOOS=$(GOOS ) go build -tags " $( BUILDTAGS) " -ldflags " $( VERSION_LDFLAGS ) " -o bin/macadam-$(GOOS ) -$(GOARCH ) ./cmd/macadam
5045
5146bin/macadam-linux-amd64 : GOOS=linux
5247bin/macadam-linux-amd64 : GOARCH=amd64
Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ func checkKrunKitAvailability(provider vmconfigs.VMProvider) error {
4444func getBinariesDirs () []string {
4545 // On Mac, Podman helper binaries dirs can be found at
4646 // https://github.com/containers/common/blob/main/pkg/config/config_darwin.go#L15-L28
47- // We use the same to detect the binaries
47+ // We use the same to detect the binaries and add /opt/macadam/bin to the list
4848 return []string {
49+ "/opt/macadam/bin" ,
4950 // Relative to the binary directory
5051 "$BINDIR/../libexec/podman" ,
5152 // Homebrew install paths
You can’t perform that action at this time.
0 commit comments