Skip to content

Commit

Permalink
upgrade to v1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Mar 3, 2024
1 parent da03e14 commit 3c080cc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.19"
go-version: "1.20"
- uses: actions/cache@v4
with:
path: |
Expand Down
14 changes: 8 additions & 6 deletions cmd/ndc-go-sdk/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"bufio"
"embed"
"errors"
"fmt"
"io/fs"
"os"
Expand Down Expand Up @@ -55,11 +54,14 @@ func generateNewProject(name string, moduleName string, srcPath string) error {
return err
}

return errors.Join(
execGoModTidy(""),
execGoGetUpdate(".", "github.com/hasura/ndc-sdk-go"),
execGoFormat("."),
)
if err := execGoModTidy(""); err != nil {
return err
}

if err := execGoGetUpdate(".", "github.com/hasura/ndc-sdk-go"); err != nil {
return err
}
return execGoFormat(".")
}

func generateNewProjectFiles(name string, moduleName string, srcPath string) error {
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/hasura/ndc-sdk-go

go 1.19
go 1.18

require (
github.com/alecthomas/kong v0.8.1
Expand Down

0 comments on commit 3c080cc

Please sign in to comment.