-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fix invalid "internal" import in SDK gen #90
base: main
Are you sure you want to change the base?
Conversation
Metadata: schema.Metadata{ | ||
DisplayName: "xyz", | ||
Description: "Provider boilerplate", | ||
LanguageMap: map[string]any{ | ||
"go": gen.GoPackageInfo{ | ||
Generics: gen.GenericsSettingGenericsOnly, | ||
ImportBasePath: "github.com/pulumi/pulumi-xyz/sdk/go/xyz", | ||
}, | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the meat of the change.
"github.com/pulumi/pulumi-xyz/sdk/go/xyz/internal" | ||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" | ||
"internal" | ||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how examples were able to pass with this import...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing the base path is good. I have mixed feelings on setting Generics: gen.GenericsSettingGenericsOnly
. I don't think pulumix
is stable. On the other hand, neither is this repo. I don't want to block on it.
Metadata
to the provider, includingGoPackageInfo
which fixes the invalid "internal" import we were generating with the SDK..gitattributes
to ignore generated SDK code by default.Workaround for pulumi/pulumi#13756.