File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -988,12 +988,6 @@ jobs:
988
988
set -euxo pipefail
989
989
go mod download
990
990
991
- # The "build/coder-dylib" target depends on all Go source files and
992
- # the target "agent/agentcontainers/dcspec/dcspec_gen.go" depends on
993
- # node/pnpm tooling.
994
- mkdir -p node_modules
995
- touch node_modules/.installed
996
-
997
991
make gen/mark-fresh
998
992
make build/coder-dylib
999
993
env :
Original file line number Diff line number Diff line change @@ -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 \
You can’t perform that action at this time.
0 commit comments