Skip to content

Commit

Permalink
Configured dependency version locking and updated Renovate auto-merge…
Browse files Browse the repository at this point in the history
… rules.

**Added:**

- Renovate auto-merge rules - Specified version restrictions for `github.com/spf13/afero` and Go language version in `renovate/autoMerge.json5`.
- Version Lock - Locked `github.com/spf13/afero` version to `1.2.1` in `go.mod` and `magefiles/go.mod` to ensure compatibility and stability.
  • Loading branch information
l50 committed Oct 24, 2023
1 parent 6e2669a commit b39af21
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 408 deletions.
13 changes: 12 additions & 1 deletion .github/renovate/autoMerge.json5
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
"ignoreTests": true,
"automergeType": "pr",
"matchUpdateTypes": ["minor", "patch", "digest"]
}
},
{
"matchDatasources": ["go"],
"matchPackageNames": ["github.com/spf13/afero"],
"allowedVersions": "1.2.1"
},
{
"description": "Preserve Go 1.18",
"paths": ["go.mod"],
"matchDatasources": ["go-version"],
"allowedVersions": "1.18.x"
},
]
}
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ require (
golang.org/x/text v0.9.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)

// Lock afero to v1.2.1
replace github.com/spf13/afero => github.com/spf13/afero v1.2.1
3 changes: 3 additions & 0 deletions magefiles/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ require (
gopkg.in/warnings.v0 v0.1.2 // indirect
mvdan.cc/sh/v3 v3.6.0 // indirect
)

// Lock afero to v1.2.1
replace github.com/spf13/afero => github.com/spf13/afero v1.2.1
Loading

0 comments on commit b39af21

Please sign in to comment.