Skip to content

Commit

Permalink
feat(deps): bump version of go to 1.22.3 (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-paul-t authored Jun 24, 2024
1 parent ce6e6d6 commit f908e5f
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: "1.22.3"
cache: true

- name: Install Task
Expand All @@ -67,7 +67,6 @@ jobs:
- name: Build
run: task build

# golanci-lint action isn't compatible with go 1.19
- name: Install golangci-lint
if: matrix.os == 'ubuntu-latest'
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22.3'

- name: Cache Go
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22.3'
cache: true

- name: Install Cosign
Expand Down
2 changes: 1 addition & 1 deletion cmd/uplift/bump.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func newBumpCmd(gopts *globalOptions, out io.Writer) *bumpCommand {
Long: bumpLongDesc,
Example: bumpExamples,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
return bumpFiles(bmpCmd.Opts, out)
},
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/uplift/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func newChangelogCmd(gopts *globalOptions, out io.Writer) *changelogCommand {
Long: changelogLongDesc,
Example: changelogExamples,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
// Always lowercase sort
chglogCmd.Opts.Sort = strings.ToLower(chglogCmd.Opts.Sort)

Expand Down
2 changes: 1 addition & 1 deletion cmd/uplift/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func newCheckCmd(gopts *globalOptions, _ io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "check",
Short: "Check if a configuration file is valid",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
cfg, err := loadConfig(gopts.ConfigDir)
if err != nil {
return err
Expand Down
6 changes: 3 additions & 3 deletions cmd/uplift/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func newCompletionCmd(out io.Writer) *cobra.Command {
Long: bashDesc,
Args: cobra.NoArgs,
DisableFlagsInUseLine: true,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
opts.shell = "bash"
return opts.Run(out, cmd)
},
Expand All @@ -98,7 +98,7 @@ func newCompletionCmd(out io.Writer) *cobra.Command {
Short: "generate a zsh shell completion script",
Long: zshDesc,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
opts.shell = "zsh"
return opts.Run(out, cmd)
},
Expand All @@ -110,7 +110,7 @@ func newCompletionCmd(out io.Writer) *cobra.Command {
Short: "generate a fish shell completion script",
Long: fishDesc,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
opts.shell = "fish"
return opts.Run(out, cmd)
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/uplift/manpage.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func newManPageCmd(out io.Writer) *manPageCommand {
DisableFlagsInUseLine: true,
Hidden: true,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
mp, err := mcobra.NewManPage(1, manCmd.Cmd.Root())
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion cmd/uplift/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func newReleaseCmd(gopts *globalOptions, out io.Writer) *releaseCommand {
Long: releaseLongDesc,
Example: releaseExamples,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
// Just check if uplift would trigger a release
if relCmd.Opts.Check {
return checkRelease(relCmd.Opts, out)
Expand Down
2 changes: 1 addition & 1 deletion cmd/uplift/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newRootCmd(out io.Writer) *rootCommand {
Short: "Semantic versioning the easy way",
SilenceUsage: true,
SilenceErrors: true,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
PersistentPreRun: func(_ *cobra.Command, _ []string) {
if rootCmd.Opts.Debug {
log.SetLevel(log.InvalidLevel)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/uplift/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func newTagCmd(gopts *globalOptions, out io.Writer) *tagCommand {
Long: tagLongDesc,
Example: tagExamples,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
// If only the current tag is to be printed, skip running a pipeline
// and just retrieve and print the latest tag
if tagCmd.Opts.PrintCurrentTag && !tagCmd.Opts.PrintNextTag {
Expand Down
2 changes: 1 addition & 1 deletion cmd/uplift/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func newVersionCmd(out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "version",
Short: "Prints the build time version information",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
return opts.run(out)
},
}
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/gembaadvantage/uplift

go 1.20
go 1.22.3

require (
github.com/Masterminds/semver v1.5.0
Expand Down

0 comments on commit f908e5f

Please sign in to comment.