@@ -54,6 +54,16 @@ FIND_EXCLUSIONS= \
54
54
-not \( \( -path '*/.git/*' -o -path './build/*' -o -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' -o -path '*/out/*' -o -path './coderd/apidoc/*' -o -path '*/.next/*' -o -path '*/.terraform/*' \) -prune \)
55
55
# Source files used for make targets, evaluated on use.
56
56
GO_SRC_FILES := $(shell find . $(FIND_EXCLUSIONS ) -type f -name '* .go' -not -name '* _test.go')
57
+ # Same as GO_SRC_FILES but excluding certain files that have problematic
58
+ # Makefile dependencies (e.g. pnpm).
59
+ MOST_GO_SRC_FILES := $(shell \
60
+ find . \
61
+ $(FIND_EXCLUSIONS ) \
62
+ -type f \
63
+ -name '* .go' \
64
+ -not -name '* _test.go' \
65
+ -not -wholename './agent/agentcontainers/dcspec/dcspec_gen.go' \
66
+ )
57
67
# All the shell files in the repo, excluding ignored files.
58
68
SHELL_SRC_FILES := $(shell find . $(FIND_EXCLUSIONS ) -type f -name '* .sh')
59
69
@@ -243,7 +253,7 @@ $(CODER_ALL_BINARIES): go.mod go.sum \
243
253
fi
244
254
245
255
# This task builds Coder Desktop dylibs
246
- $(CODER_DYLIBS ) : go.mod go.sum $(GO_SRC_FILES )
256
+ $(CODER_DYLIBS ) : go.mod go.sum $(MOST_GO_SRC_FILES )
247
257
@if [ " $( shell uname) " = " Darwin" ]; then
248
258
$(get-mode-os-arch-ext )
249
259
./scripts/build_go.sh \
@@ -659,8 +669,12 @@ agent/agentcontainers/acmock/acmock.go: agent/agentcontainers/containers.go
659
669
go generate ./agent/agentcontainers/acmock/
660
670
touch " $@ "
661
671
662
- agent/agentcontainers/dcspec/dcspec_gen.go : agent/agentcontainers/dcspec/devContainer.base.schema.json
663
- go generate ./agent/agentcontainers/dcspec/
672
+ agent/agentcontainers/dcspec/dcspec_gen.go : \
673
+ node_modules/.installed \
674
+ agent/agentcontainers/dcspec/devContainer.base.schema.json \
675
+ agent/agentcontainers/dcspec/gen.sh \
676
+ agent/agentcontainers/dcspec/doc.go
677
+ DCSPEC_QUIET=true go generate ./agent/agentcontainers/dcspec/
664
678
touch " $@ "
665
679
666
680
$(TAILNETTEST_MOCKS ) : tailnet/coordinator.go tailnet/service.go
0 commit comments