Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Use find for shell files and improve perf via ignore dirs
  • Loading branch information
mafredri committed Nov 9, 2022
commit ccdb21ac6aa281db84353e4501c5b22d23ffee9a
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ ZSTDFLAGS := -6
endif

# Source files used for make targets, evaluated on use.
GO_SRC_FILES = $(shell find . -not -path './vendor/*' -type f -name '*.go')
GO_SRC_FILES = $(shell find . -not \( -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' \) -type f -name '*.go')
# All the shell files in the repo, excluding ignored files.
SHELL_SRC_FILES = $(shell shfmt -f . | grep -v "\.coderv2/")
SHELL_SRC_FILES = $(shell find . -not \( -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' \) -type f -name '*.sh')

# All ${OS}_${ARCH} combos we build for. Windows binaries have the .exe suffix.
OS_ARCHES := \
Expand Down