Skip to content

Commit

Permalink
Fixes for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
tkielar-pgs committed May 31, 2022
1 parent 24f2533 commit 4cad6fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ builds:
ignore:
- goos: darwin
goarch: '386'
- goos: windows
goarch: arm
binary: '{{ .ProjectName }}_v{{ .Version }}'

archives:
Expand Down
12 changes: 5 additions & 7 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ var (
)

const (
VersionDev Version = "dev"
VersionTest = "test"
VersionDev = "dev"
VersionTest = "test"
)

type Version string

type Resource struct {
Version Version
Version string
Db sql.Connection
}

Expand Down Expand Up @@ -110,7 +108,7 @@ func (pd providerData) asConnectionDetails(ctx context.Context) (sql.ConnectionD
}

type provider struct {
Version Version
Version string
Db sql.Connection
}

Expand Down Expand Up @@ -209,7 +207,7 @@ func (p provider) GetSchema(context.Context) (tfsdk.Schema, diag.Diagnostics) {
}, nil
}

func New(version Version) func() tfsdk.Provider {
func New(version string) func() tfsdk.Provider {
return func() tfsdk.Provider {
return &provider{
Version: version,
Expand Down

0 comments on commit 4cad6fd

Please sign in to comment.