Skip to content

Commit

Permalink
Create a dependabot group for all go deps
Browse files Browse the repository at this point in the history
Dependabot seems to only update a dep in all go modoules,
if it belongs to a group.

This new group will cover all deps that are not part of
an existing group, so they get updated in all go.mod.

I think this will help avoid issues like
#1939

Signed-off-by: Jin Dong <[email protected]>
  • Loading branch information
djdongjin committed Jan 15, 2025
1 parent 8c9ecb7 commit 331bf43
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ updates:
k8s:
patterns:
- "k8s.io/*"
gomod:
# this pattern covers all go dependencies that are not in
# the above groups. dependabot doesn't seem to update sub-modules if
# a dependency doesn't belong to a group, so we define this group
# explicitly.
exclude-patterns:
- "golang.org/x/*"
- "google.golang.org/*"
- "github.com/containerd/*"
- "github.com/opencontainers/*"
- "k8s.io/*"

# Automatic upgrade for base images used in the Dockerfile
- package-ecosystem: "docker"
Expand Down

0 comments on commit 331bf43

Please sign in to comment.