-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
goPath not worked #89
Comments
Hi @howieyuen , we have reproduced this issue and can confirm this is a bug. This bug only seems present for Go, and the equivalent flags for other languages are functional. This portion of the codebase seems to have undergone quite a lot of changes since the last release, so the issue might have already been addressed. @mattolenik would be good to confirm whether this has been addressed? |
I try to fix locally, but failed 😭 func GenerateGo(pg *PackageGenerator, name string) (buffers map[string]*bytes.Buffer, err error) {
...
for path, code := range files {
newPath, _ := filepath.Rel(name, path) and see func writeFiles(files map[string]*bytes.Buffer, outputDir string) error {
for path, code := range files {
outputFilePath := filepath.Join(outputDir, path)
... the |
Added to epic https://github.com/pulumi/home/issues/3431 |
This issue has been addressed in PR #143 and shipped in release v1.5.0. |
What happened?
crd2pulumi --goPath ./crontabs crontab.yaml
generate code under packagekubernetes
not undercrontabs
Steps to reproduce
Just like README says, prepare
crontab.yaml
first, then runcrd2pulumi --goPath ./crontabs crontab.yaml
Expected Behavior
generated code under new package
crontabs
Actual Behavior
generated code under new package
kubernetes
Versions used
v1.2.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: