File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,12 @@ limactl: _output/bin/limactl$(exe) lima
156
156
157
157
# ## Listing Dependencies
158
158
159
- # returns a list of files expanded from $(1) excluding directories.
160
- glob_excluding_dir = $(shell bash -c -O extglob -O globstar -O nullglob 'for f in $(1 ) ; do test -d $$f || echo $$f; done ')
161
- FILES_IN_PKG = $(call glob_excluding_dir , ./pkg/ ** /!( * _test.go) )
159
+ # returns a list of files expanded from $(1) excluding directories and files ending with '_test.go' .
160
+ find_files_excluding_dir_and_test = $(shell find $(1 ) ! -type d ! -name ' * _test.go ')
161
+ FILES_IN_PKG = $(call find_files_excluding_dir_and_test , ./pkg)
162
162
163
163
# returns a list of files which are dependencies for the command $(1).
164
- dependencis_for_cmd = go.mod $(call glob_excluding_dir , ./cmd/$(1 ) / ** /!( * _test.go ) ) $(FILES_IN_PKG )
164
+ dependencis_for_cmd = go.mod $(call find_files_excluding_dir_and_test , ./cmd/$(1 ) ) $(FILES_IN_PKG )
165
165
166
166
# ## Force Building Targets
167
167
You can’t perform that action at this time.
0 commit comments