Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ ifeq ($(DETECTED_OS),Windows)
BINARY_EXT=.exe
endif

ifeq ($(DETECTED_OS),Darwin)
GO_BUILDTAGS += fsnotify
endif

BUILD_FLAGS?=
TEST_FLAGS?=
E2E_TEST?=
Expand Down Expand Up @@ -62,11 +66,11 @@ build:

.PHONY: binary
binary:
$(BUILDX_CMD) bake binary
BUILD_TAGS="$(GO_BUILDTAGS)" $(BUILDX_CMD) bake binary

.PHONY: binary-with-coverage
binary-with-coverage:
$(BUILDX_CMD) bake binary-with-coverage
BUILD_TAGS="$(GO_BUILDTAGS)" $(BUILDX_CMD) bake binary-with-coverage

.PHONY: install
install: binary
Expand Down
2 changes: 1 addition & 1 deletion pkg/watch/watcher_darwin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin
//go:build fsnotify

/*
Copyright 2020 Docker Compose CLI authors
Expand Down
2 changes: 1 addition & 1 deletion pkg/watch/watcher_naive.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !darwin
//go:build !fsnotify

/*
Copyright 2020 Docker Compose CLI authors
Expand Down