Skip to content

Commit

Permalink
renovate: tweaks for Go
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Jan 3, 2025
1 parent e6b3578 commit e02ddaf
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-get-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.4 # datasource=github-releases depName=golang/go
go-version: 1.22.4 # datasource=golang-version depName=go

- name: Go get update
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-mod-tidy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.4 # datasource=github-releases depName=golang/go
go-version: 1.22.4 # datasource=golang-version depName=go

- name: Go mod tidy
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.4 # datasource=github-releases depName=golang/go
go-version: 1.22.4 # datasource=golang-version depName=go

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.4 # datasource=github-releases depName=golang/go
go-version: 1.22.4 # datasource=golang-version depName=go

- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
Expand Down
23 changes: 21 additions & 2 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,33 @@
"extends": ["config:recommended", ":semanticCommitsDisabled"],
"addLabels": ["renovate"],
"ignoreDeps": ["opentofu"],
"postUpdateOptions": ["gomodTidy"],
"packageRules": [
{
"groupName": "all go dependencies main",
"groupSlug": "all-go-deps-main",
"matchFiles": ["go.mod", "go.sum"],
"postUpdateOptions": ["gomodUpdateImportPaths"]
},
{
"enabled": "false",
"matchFiles": ["go.mod"],
"matchDepNames": ["go"],
"matchDatasources": ["golang-version"],
"matchUpdateTypes": ["patch"]
}
],
"constraints": {
"go": ">= 1.22"
},
"customManagers": [
{
"customType": "regex",
"extractVersionTemplate": "^(?<version>.*)$",
"fileMatch": ["^\\.go-version$"],
"matchStrings": ["(?<currentValue>\\d+\\.\\d+\\.\\d+)"],
"datasourceTemplate": "github-releases",
"depNameTemplate": "golang/go",
"datasourceTemplate": "go",
"depNameTemplate": "go",
"versioningTemplate": "semver"
},
{
Expand Down
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ plugins:
uri: https://github.com/trunk-io/plugins
runtimes:
enabled:
- [email protected] # datasource=github-releases depName=golang/go
- [email protected] # datasource=golang-version depName=go
- [email protected]
- [email protected]

0 comments on commit e02ddaf

Please sign in to comment.