Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfeffa14

Browse files
committed
MOST_GO_SRC_FILES~
1 parentcc0f78b commitfeffa14

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

‎.github/workflows/ci.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -988,12 +988,6 @@ jobs:
988988
set -euxo pipefail
989989
go mod download
990990
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-
997991
make gen/mark-fresh
998992
make build/coder-dylib
999993
env:

‎Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ FIND_EXCLUSIONS= \
5454
-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 \)
5555
# Source files used for make targets, evaluated on use.
5656
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+
)
5767
# All the shell files in the repo, excluding ignored files.
5868
SHELL_SRC_FILES :=$(shell find .$(FIND_EXCLUSIONS) -type f -name '*.sh')
5969

@@ -243,7 +253,7 @@ $(CODER_ALL_BINARIES): go.mod go.sum \
243253
fi
244254

245255
# 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)
247257
@if ["$(shell uname)"="Darwin" ];then
248258
$(get-mode-os-arch-ext)
249259
./scripts/build_go.sh\

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp