Skip to content

Commit

Permalink
fix(mod): revert "move no-op imports to main.go" (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen authored Sep 21, 2021
1 parent 8e57968 commit 02f836a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 6 additions & 0 deletions generator/templates/_header.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ import (
"github.com/prisma/prisma-client-go/runtime/raw"
"github.com/prisma/prisma-client-go/runtime/builder"
"github.com/prisma/prisma-client-go/runtime/transaction"

// no-op import for go modules
_ "github.com/shopspring/decimal"
_ "github.com/iancoleman/strcase"
_ "github.com/takuoki/gocase"
_ "github.com/joho/godotenv"
)

// re-declare variables which are needed in Prisma Client Go but also should be exported
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/prisma/prisma-client-go
go 1.16

require (
github.com/iancoleman/strcase v0.2.0
github.com/joho/godotenv v1.3.0
github.com/iancoleman/strcase v0.0.0-20190422225806-e506e3ef7365
github.com/joho/godotenv v1.3.0 // indirect
github.com/shopspring/decimal v1.2.0
github.com/stretchr/testify v1.4.0
github.com/takuoki/gocase v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0=
github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
github.com/iancoleman/strcase v0.0.0-20190422225806-e506e3ef7365 h1:ECW73yc9MY7935nNYXUkK7Dz17YuSUI9yqRqYS8aBww=
github.com/iancoleman/strcase v0.0.0-20190422225806-e506e3ef7365/go.mod h1:SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE=
github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ import (

"github.com/prisma/prisma-client-go/cli"
"github.com/prisma/prisma-client-go/logger"

// ensure imports can be detected by go.mod
_ "github.com/iancoleman/strcase"
_ "github.com/joho/godotenv"
_ "github.com/shopspring/decimal"
_ "github.com/takuoki/gocase"
)

func main() {
Expand Down

0 comments on commit 02f836a

Please sign in to comment.