Skip to content

Commit

Permalink
Merge pull request #44 from orange-cloudfoundry/devel
Browse files Browse the repository at this point in the history
upgrade go and dependencies
  • Loading branch information
romain-dartigues authored May 14, 2024
2 parents a5221d6 + 50775a5 commit fdf6966
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/after-merge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: Fetch dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.6.0
uses: dependabot/fetch-metadata@v2.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
fetch-depth: 0

- name: set up go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.22"

- name: cache go modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -36,7 +36,7 @@ jobs:
run: |
go mod vendor
if [ ! -z "$(git status --porcelain)" ]; then
echo "::error::vendor directory if not synched with go.mod, please run go mod vendor"
echo "::error::vendor directory if not synced with go.mod, please run go mod vendor"
exit 1
fi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
fetch-depth: 0

- name: set up go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.22"

- name: cache go modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
4 changes: 2 additions & 2 deletions converters/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ func findConverter(patch model.Patch) converter {
func ConvertConfigToYaml(patch model.Patch) ([]byte, error) {
converter := findConverter(patch)
if converter == nil {
return []byte{}, fmt.Errorf("Could not find converter satisfying config file %s", patch.ConfigFile)
return []byte{}, fmt.Errorf("could not find converter satisfying config file: %s", patch.ConfigFile)
}
return converter.ConvertToYaml(patch.ConfigFile)
}

func ConfigYamlTo(patch model.Patch, data []byte) ([]byte, error) {
converter := findConverter(patch)
if converter == nil {
return []byte{}, fmt.Errorf("Could not find converter satisfying config file %s", patch.ConfigFile)
return []byte{}, fmt.Errorf("could not find converter satisfying config file: %s", patch.ConfigFile)
}
return converter.YamlTo(data)
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/orange-cloudfoundry/config-patcher

go 1.21
go 1.22.3

require (
github.com/alecthomas/kingpin/v2 v2.4.0
Expand All @@ -12,7 +12,7 @@ require (
)

require (
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/onsi/ginkgo v1.10.2 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/alecthomas/kingpin/v2 v2.4.0 h1:f48lwail6p8zpO1bC4TxtqACaGqHYA22qkHjHpqDjYY=
github.com/alecthomas/kingpin/v2 v2.4.0/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE=
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc=
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE=
github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9 h1:ez/4by2iGztzR4L0zgAOR8lTQK9VlyBVVd7G4omaOQs=
github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
11 changes: 11 additions & 0 deletions vendor/github.com/alecthomas/units/renovate.json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# github.com/alecthomas/kingpin/v2 v2.4.0
## explicit; go 1.17
github.com/alecthomas/kingpin/v2
# github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137
# github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9
## explicit; go 1.15
github.com/alecthomas/units
# github.com/hashicorp/errwrap v1.1.0
Expand Down

0 comments on commit fdf6966

Please sign in to comment.