Skip to content

Commit 7d8722b

Browse files
committed
dependabot: disable version bump checks/only keep security updates
Go uses a minimal version selection algorithm to select the version of modules used in a build (see https://github.com/golang/go/wiki/Modules#version-selection). From the go wiki: ``` [...] if your module depends on module A which has a require D v1.0.0, and your module also depends on module B which has a require D v1.1.1, then minimal version selection would choose v1.1.1 of D to include in the build (given it is the highest listed require version). ``` Since `compose-go` is a library and meant to be used by downstream implementations, in order to maximize compatibility with other imports we should try to use the lowest version of any dependencies we need, as opposed to using whatever latest version is available. This commit changes the dependabot config to disable version bumps, but does keep security updates enabled. (see: https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates) Signed-off-by: Laura Brehm <[email protected]>
1 parent 32b078a commit 7d8722b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ updates:
44
directory: "/"
55
schedule:
66
interval: weekly
7-
open-pull-requests-limit: 10
7+
# compose-go is a library, so to maximize compatibility for downstream
8+
# users with go's minimal version selection for dependencies we should
9+
# ignore version bumps and only update when there are security updates
10+
open-pull-requests-limit: 0
811
ignore:
912
- dependency-name: github.com/sirupsen/logrus
1013
versions:

0 commit comments

Comments
 (0)