Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Dec 3, 2024
1 parent 7095de4 commit 292ae9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dynamic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ func initialSetup() (info.Provider, pfbridge.ProviderMetadata, func() error) {
if err != nil {
return plugin.ParameterizeResponse{}, err
}
versionWithPrefix := "v" + info.Version
versionTag := "v" + info.Version
cmd := exec.Command(
"git", "clone", "--depth", "1", "-b", versionWithPrefix, info.Repository, tmpDir,
"git", "clone", "--depth", "1", "-b", versionTag, info.Repository, tmpDir,
)
err = cmd.Run()
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions pkg/tfgen/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,7 @@ func (g *Generator) gatherResource(rawname string,
g.warn(msg)
}
}

return res, nil
}

Expand Down
3 changes: 0 additions & 3 deletions pkg/tfgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ func Main(pkg string, version string, prov tfbridge.ProviderInfo) {

// Let's generate some code!
_, err = g.Generate()
if err != nil {
return err
}
return err
})
}
Expand Down

0 comments on commit 292ae9d

Please sign in to comment.