- Notifications
You must be signed in to change notification settings - Fork927
fix(Makefile): fix dcspec gen dependencies and hide error output#17043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -54,6 +54,16 @@ FIND_EXCLUSIONS= \ | ||
-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 \) | ||
# Source files used for make targets, evaluated on use. | ||
GO_SRC_FILES := $(shell find . $(FIND_EXCLUSIONS) -type f -name '*.go' -not -name '*_test.go') | ||
# Same as GO_SRC_FILES but excluding certain files that have problematic | ||
# Makefile dependencies (e.g. pnpm). | ||
MOST_GO_SRC_FILES := $(shell \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. To avoid the search again, could you do an inverse grep on GO_SRC_FILES instead perhaps? No stress if you have problems, this will be fine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. AFAIK the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. That's fair, all g then | ||
find . \ | ||
$(FIND_EXCLUSIONS) \ | ||
-type f \ | ||
-name '*.go' \ | ||
-not -name '*_test.go' \ | ||
-not -wholename './agent/agentcontainers/dcspec/dcspec_gen.go' \ | ||
) | ||
# All the shell files in the repo, excluding ignored files. | ||
SHELL_SRC_FILES := $(shell find . $(FIND_EXCLUSIONS) -type f -name '*.sh') | ||
@@ -243,7 +253,7 @@ $(CODER_ALL_BINARIES): go.mod go.sum \ | ||
fi | ||
# This task builds Coder Desktop dylibs | ||
$(CODER_DYLIBS): go.mod go.sum $(MOST_GO_SRC_FILES) | ||
@if [ "$(shell uname)" = "Darwin" ]; then | ||
$(get-mode-os-arch-ext) | ||
./scripts/build_go.sh \ | ||
@@ -659,8 +669,12 @@ agent/agentcontainers/acmock/acmock.go: agent/agentcontainers/containers.go | ||
go generate ./agent/agentcontainers/acmock/ | ||
touch "$@" | ||
agent/agentcontainers/dcspec/dcspec_gen.go: \ | ||
node_modules/.installed \ | ||
agent/agentcontainers/dcspec/devContainer.base.schema.json \ | ||
agent/agentcontainers/dcspec/gen.sh \ | ||
agent/agentcontainers/dcspec/doc.go | ||
DCSPEC_QUIET=true go generate ./agent/agentcontainers/dcspec/ | ||
touch "$@" | ||
$(TAILNETTEST_MOCKS): tailnet/coordinator.go tailnet/service.go | ||
Uh oh!
There was an error while loading.Please reload this page.