Skip to content

Commit

Permalink
Use go major.minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
fmunteanu committed May 27, 2024
1 parent 0b39a61 commit 03a1254
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 26 deletions.
20 changes: 4 additions & 16 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
"depNameTemplate": "golang/go",
"extractVersionTemplate": "^go(?<version>.+)$",
"fileMatch": [
".github/workflows/hugo.yml",
"netlify.toml"
],
"matchStrings": [
"go-version:\\s+(?<currentValue>.+)",
"^GO_VERSION[\\s\\S]+?\"(?<currentValue>.+)\""
]
},
Expand All @@ -27,18 +29,6 @@
"matchStrings": [
"^HUGO_VERSION[\\s\\S]+?\"(?<currentValue>.+)\""
]
},
{
"customType": "regex",
"datasourceTemplate": "github-tags",
"depNameTemplate": "golang/go",
"extractVersionTemplate": "^go(?<version>.+)$",
"fileMatch": [
".github/workflows/hugo.yml"
],
"matchStrings": [
"go-version:\\s+(?<currentValue>.+)"
]
}
],
"enabledManagers": [
Expand Down Expand Up @@ -72,17 +62,15 @@
],
"matchManagers": [
"gomod"
],
"rangeStrategy": "bump"
]
},
{
"matchDepTypes": [
"indirect"
],
"matchManagers": [
"gomod"
],
"rangeStrategy": "bump"
]
}
],
"prConcurrentLimit": 0,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: false
go-version: 1.22.2
go-version: 1.22
- name: Setup Hugo
run: sudo snap install --channel=extended/stable hugo
- name: Configure Pages
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ hugo server --disableFastRender -Ds ./docs
Run the following commands:

```shell
hugo mod clean --all
hugo mod get -u ./...
hugo mod tidy ./...
```
Expand Down
4 changes: 2 additions & 2 deletions docs/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/axivo/website/docs

go 1.22.3
go 1.22

require (
github.com/axivo/website/global v1.0.0 // indirect
github.com/axivo/website/global v1.0.1 // indirect
github.com/imfing/hextra v0.7.4-0.20240526173855-857c4e4ca182 // indirect
)
4 changes: 2 additions & 2 deletions docs/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/axivo/website/global v1.0.0 h1:bj9/nm3JDNhEnVPmxrtEnIML0jcF8CLSYRoUOozHyMo=
github.com/axivo/website/global v1.0.0/go.mod h1:ZKVkalB26nUsvakWnA861I8MOZNiXK2DKnoBCPTqjT8=
github.com/axivo/website/global v1.0.1 h1:dcqAzt/XQdgJ7OMGMvkwiwMc5CpSQ5iuYNN632rm1bQ=
github.com/axivo/website/global v1.0.1/go.mod h1:QQk2/AIFUOQIGv0YQivBp1qa9aQeAjHHljwIJCGc1fk=
github.com/imfing/hextra v0.7.4-0.20240526173855-857c4e4ca182 h1:IrtRwafIVcW0+mdtcdTOcO1hskYqCFrkJwl0tHXNyyU=
github.com/imfing/hextra v0.7.4-0.20240526173855-857c4e4ca182/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI=
4 changes: 2 additions & 2 deletions k3s-cluster/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/axivo/website/k3s-cluster

go 1.22.3
go 1.22

require (
github.com/axivo/website/global v1.0.0 // indirect
github.com/axivo/website/global v1.0.1 // indirect
github.com/imfing/hextra v0.7.4-0.20240526173855-857c4e4ca182 // indirect
)
4 changes: 2 additions & 2 deletions k3s-cluster/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/axivo/website/global v1.0.0 h1:bj9/nm3JDNhEnVPmxrtEnIML0jcF8CLSYRoUOozHyMo=
github.com/axivo/website/global v1.0.0/go.mod h1:ZKVkalB26nUsvakWnA861I8MOZNiXK2DKnoBCPTqjT8=
github.com/axivo/website/global v1.0.1 h1:dcqAzt/XQdgJ7OMGMvkwiwMc5CpSQ5iuYNN632rm1bQ=
github.com/axivo/website/global v1.0.1/go.mod h1:QQk2/AIFUOQIGv0YQivBp1qa9aQeAjHHljwIJCGc1fk=
github.com/imfing/hextra v0.7.4-0.20240526173855-857c4e4ca182 h1:IrtRwafIVcW0+mdtcdTOcO1hskYqCFrkJwl0tHXNyyU=
github.com/imfing/hextra v0.7.4-0.20240526173855-857c4e4ca182/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI=
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ command = "hugo --gc --minify -s ./docs -b ${DEPLOY_PRIME_URL}"
ignore = "false"

[build.environment]
GO_VERSION = "1.22.3"
GO_VERSION = "1.22"
HUGO_VERSION = "0.126.1"

0 comments on commit 03a1254

Please sign in to comment.