Skip to content

Commit

Permalink
Update Go to 1.22.5
Browse files Browse the repository at this point in the history
Fixes #434
  • Loading branch information
hypnoglow committed Jul 4, 2024
1 parent ddc50e0 commit f74123e
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golang 1.19.13
golang 1.22.5
helm 3.13.2
golangci-lint 1.48.0
goreleaser 2.0.1
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `generated` timestamp field in the index file is now updated with current time
on push, reindex and delete.

- Go updated to 1.22.

## [0.16.0] - 2023-12-07

### Added
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.19
ARG GO_VERSION=1.22
ARG HELM_VERSION

FROM golang:${GO_VERSION}-alpine as build
Expand Down
7 changes: 7 additions & 0 deletions cmd/helm-s3/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ func newInitCommand(opts *options) *cobra.Command {
flags.BoolVar(&act.force, "force", act.force, "Replace the index file if it already exists.")
flags.BoolVar(&act.ignoreIfExists, "ignore-if-exists", act.ignoreIfExists, "If the index file already exists, exit normally and do not trigger an error.")

// We don't use cobra's feature
//
// cmd.MarkFlagsMutuallyExclusive("force", "ignore-if-exists")
//
// because the error message is confusing. Instead, we check the flags
// manually in run().

return cmd
}

Expand Down
7 changes: 7 additions & 0 deletions cmd/helm-s3/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ func newPushCommand(opts *options) *cobra.Command {
flags.BoolVar(&act.ignoreIfExists, "ignore-if-exists", act.ignoreIfExists, "If the chart already exists, exit normally and do not trigger an error.")
flags.BoolVar(&act.relative, "relative", act.relative, "Use relative chart URL in the index instead of absolute.")

// We don't use cobra's feature
//
// cmd.MarkFlagsMutuallyExclusive("force", "ignore-if-exists")
//
// because the error message is confusing. Instead, we check the flags
// manually in run().

return cmd
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hypnoglow/helm-s3

go 1.19
go 1.22

require (
github.com/Masterminds/semver v1.5.0
Expand Down
35 changes: 35 additions & 0 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit f74123e

Please sign in to comment.