@@ -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\