Skip to content

Commit

Permalink
update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
xh3b4sd committed Jul 20, 2024
1 parent 3c7edc3 commit a5a78a6
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: "actions/setup-go@v5"
with:
cache: true
go-version: "1.21.1"
go-version: "1.22.5"

- name: "Check Go Dependencies"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: "actions/setup-go@v5"
with:
cache: true
go-version: "1.21.1"
go-version: "1.22.5"

- name: "Cross Compile Binaries"
run: |
Expand Down
14 changes: 10 additions & 4 deletions cmd/create/pbfgo/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ const (
short = "Create a protocol buffer workflow for golang code generation."
long = `Create a protocol buffer workflow for golang code generation. The workflow
generated here works in a setup of two Github repositories. Call them apischema
and gocode. The workflow generated with the following command is added to the
and apigocode. The workflow generated with the following command is added to the
apischema repository.
workflow create pbfgo -o xh3b4sd -r gocode
workflow create pbfgo -o fancy-organization -r apigocode
In order to make the workflow function correctly a deploy key must be generated
and distributed. The public key is added as deploy key with write access to the
gocode repository. The private key is added as Github Action Secret to the
apischema repository. See the link below for more information.
apigocode repository. The private key is added as Github Action Secret to the
apischema repository, call it SSH_DEPLOY_KEY_APIGOCODE. A new key pair can be
generated like shown below.
ssh-keygen -t ed25519 -C [email protected]
More information about the Github Action used to push changes from one
repository to another can be found following the link below.
https://github.com/cpina/github-action-push-to-another-repository
`
Expand Down
14 changes: 10 additions & 4 deletions cmd/create/pbfts/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ const (
short = "Create a protocol buffer workflow for typescript code generation."
long = `Create a protocol buffer workflow for typescript code generation. The workflow
generated here works in a setup of two Github repositories. Call them apischema
and tscode. The workflow generated with the following command is added to the
and apitscode. The workflow generated with the following command is added to the
apischema repository.
workflow create pbfts -o xh3b4sd -r tscode
workflow create pbfts -o fancy-organization -r apitscode
In order to make the workflow function correctly a deploy key must be generated
and distributed. The public key is added as deploy key with write access to the
gocode repository. The private key is added as Github Action Secret to the
apischema repository. See the link below for more information.
apitscode repository. The private key is added as Github Action Secret to the
apischema repository, call it SSH_DEPLOY_KEY_APIGOCODE. A new key pair can be
generated like shown below.
ssh-keygen -t ed25519 -C [email protected]
More information about the Github Action used to push changes from one
repository to another can be found following the link below.
https://github.com/cpina/github-action-push-to-another-repository
`
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/xh3b4sd/workflow

go 1.21
go 1.22

require (
github.com/google/go-cmp v0.6.0
Expand Down
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package main

import (
"context"

"github.com/spf13/cobra"
"github.com/xh3b4sd/logger"
"github.com/xh3b4sd/tracer"
Expand All @@ -11,13 +9,13 @@ import (
)

func main() {
err := mainE(context.Background())
err := mainE()
if err != nil {
tracer.Panic(err)
}
}

func mainE(ctx context.Context) error {
func mainE() error {
var err error

var l logger.Interface
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/golang.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package version

const (
Golang = "1.21.1"
Golang = "1.22.5"
)

0 comments on commit a5a78a6

Please sign in to comment.