We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4aab823 + 7e13cce commit dc28e6aCopy full SHA for dc28e6a
go-monorepo/for_each_gomod.sh
@@ -3,6 +3,11 @@
3
# every module.
4
pwd="$(pwd)"
5
for dir in $(go list -m -f '{{`{{.Dir}}`}}'); do
6
+ # Skip directories that match the exclude pattern if set
7
+ if [ -n "${DEVBOX_GO_MONOREPO_EXCLUDE}" ] && [[ "$dir" =~ ${DEVBOX_GO_MONOREPO_EXCLUDE} ]]; then
8
+ echo "Skipping excluded directory: $dir"
9
+ continue
10
+ fi
11
echo "$dir: $*" && cd "$dir" && "$@" || exit $?
12
done
13
cd "$pwd" || return
0 commit comments