-
Notifications
You must be signed in to change notification settings - Fork 117
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
Missing PkgVersion function #2580
Comments
@guineveresaenger Was this effect intended in pulumi/pulumi#13136? Can we solve this in |
Hi! Apologies @hagaibarel - I'm at Grace Hopper this week so reply may be slower than usual. We definitely intended to put pulumiUtilities in an @mikhailshilkov -we thankfully do not need to change codegen again. |
Thanks for reply @guineveresaenger, is there anything I can do to help move this forward? It's important for us as we rely on |
- Set Go's internalModuleName to utilities instead of internal - Regenerate Go SDK ### Proposed changes Rename `internal` to `utilities` to make package accessible for dependent libraries ### Related issues (optional) Fixes #2580
Hey I think codegen still needs to be changed as it is still using the depracted |
What happened?
Since version 4.1.0 the
PkgVersion()
function is missing from the sdk. It seems that #2519 moved thepulumiUtilites.go
file to an internal pkg but that isn't importable.The problem is the tools such as
crd2pulumi
relay on that function when generating the code and the code is broken as of 4.1.0.A possible solution (see pulumi/pulumi#13749) would be to rename the internal pkg to something else (e.g. utilities) so it can be importable
Example
Run
[email protected]
on any crd yaml file and observe that the generated code is brokenOutput of
pulumi about
CLI
Version 3.85.0
Go Version go1.21.1
Go Compiler gc
Plugins
NAME VERSION
go unknown
kubernetes 4.0.3
Host
OS ubuntu
Version 23.04
Arch x86_64
This project is written in go: executable='/usr/local/go/bin/go' version='go version go1.21.1 linux/amd64'
backend and resource list redacted for brevity
Dependencies:
NAME VERSION
github.com/bringg/pulib 1.0.5
github.com/creasty/defaults 1.7.0
github.com/onsi/ginkgo/v2 2.12.1
github.com/onsi/gomega 1.27.10
github.com/pulumi/pulumi-kubernetes/sdk/v4 4.0.3
github.com/pulumi/pulumi/sdk/v3 3.85.0
golang.org/x/exp 0.0.0-20230811145659-89c5cff77bcb
Pulumi locates its logs in /tmp by default
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: