Skip to content

Commit

Permalink
chore: global var for go codegen version
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Aug 5, 2024
1 parent a1f86c8 commit 403e79f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ const (
GO_DIR = "go"

TS_CODEGEN_VERSION = "1.11.1"
GO_CODEGEN_VERSION = "0.2.5"
)
2 changes: 1 addition & 1 deletion magefiles/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func ensureGoCodegen() {
}

fmt.Printf("🔨 Installing go-codegen...\n")
if err := sh.Run("go", "install", "github.com/srdtrk/go-codegen@v0.2.5"); err != nil {
if err := sh.Run("go", "install", fmt.Sprintf("github.com/srdtrk/go-codegen@v%s", GO_CODEGEN_VERSION)); err != nil {
panic(fmt.Sprintf("failed to install go-codegen: %v", err))
}
}

0 comments on commit 403e79f

Please sign in to comment.