Skip to content

Commit

Permalink
Make the script skip the main module
Browse files Browse the repository at this point in the history
There is no point in processing a module for which we are updating
dependencies, as we won't be able to update its version anyway.

Yes, this module will still be filtered in the second stage, but there
is no point in including it in the list of modules to search for
updates.
  • Loading branch information
xorcare committed Sep 22, 2024
1 parent 423fb86 commit 1742d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-mod-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ EOF
exit 0
fi

GO_LIST_FORMAT_DIRECT='{{.Path}}{{if .Indirect}}<SKIP>{{end}}'
GO_LIST_FORMAT_DIRECT='{{.Path}}{{if .Indirect}}<SKIP>{{end}}{{if .Main}}<SKIP>{{end}}'
readonly GO_LIST_FORMAT_DIRECT

# shellcheck disable=SC2068
Expand Down

0 comments on commit 1742d54

Please sign in to comment.