Skip to content
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

Golang sdk, serviceAccount package not exists, should be "serviceaccount". #722

Closed
Mistic92 opened this issue Jan 18, 2022 · 5 comments
Closed
Assignees
Labels
area/docs Improvements or additions to documentation area/import An issue related to `pulumi import` or the import resource option. kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed vnext Target for next major release
Milestone

Comments

@Mistic92
Copy link

Mistic92 commented Jan 18, 2022

I'm trying to follow docs but I can't use given package and it's not available in package repository

When trying to use serviceaccount package I'm getting

github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/serviceAccount: module github.com/pulumi/pulumi-gcp/sdk/v6@latest found (v6.7.0), but does not contain package github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/serviceAccount

https://www.pulumi.com/registry/packages/gcp/api-docs/serviceaccount/account/

Also it's not available there
https://pkg.go.dev/github.com/pulumi/pulumi-gcp/sdk/[email protected]/go/gcp/serviceAccount

Looks like bug in tutorial as correct name is serviceaccount
https://pkg.go.dev/github.com/pulumi/pulumi-gcp/sdk/[email protected]/go/gcp/serviceaccount

@Mistic92 Mistic92 added the kind/bug Some behavior is incorrect or out of spec label Jan 18, 2022
@Mistic92 Mistic92 changed the title Golang sdk, serviceAccount package not exists Golang sdk, serviceAccount package not exists, should be "serviceaccount". Jan 18, 2022
@stack72 stack72 added the area/docs Improvements or additions to documentation label Jan 24, 2022
@cnorling
Copy link

cnorling commented Jun 5, 2022

I ran into this issue as well when I imported a serviceaccount. the outputted code declared the go module as serviceAccount instead of serviceaccount

@burmecia
Copy link

Got same issue and the example on this page https://www.pulumi.com/registry/packages/gcp/api-docs/serviceaccount/account/ is also wrong:

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const serviceAccount = new gcp.serviceAccount.Account("service_account", {
    accountId: "service-account-id",
    displayName: "Service Account",
});

It should be:

const serviceAccount = new gcp.serviceaccount.Account("service_account", {
    accountId: "service-account-id",
    displayName: "Service Account",
});

@lblackstone lblackstone added the area/import An issue related to `pulumi import` or the import resource option. label Dec 15, 2022
@Mistic92
Copy link
Author

Wow its still not fixed. Again I have encountered this error and found answer in my bug report.

@shadiramadan
Copy link

Seriously still not fixed... The schema.json is full of issues. I found a few typos for some other resources as well.

@anilkumarnm
Copy link

Still not fixed :-(

@ericrudder ericrudder added this to the 0.96 milestone Oct 26, 2023
@mnlumi mnlumi mentioned this issue Oct 27, 2023
@mnlumi mnlumi added the vnext Target for next major release label Oct 27, 2023
mikhailshilkov added a commit that referenced this issue Nov 1, 2023
Renames the `serviceAccount` module to `serviceaccount` according to our
convention of lowercase modules. It's been a long-standing override that
we can now get rid of. The change adds aliases to the old type names.

In terms of SDKs, this change is non-breaking for Node, Python, and
.NET, but is breaking for Go and Java. We do need to call it out in our
migration guide.

Once v7 ships, this will fix
#722
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Improvements or additions to documentation area/import An issue related to `pulumi import` or the import resource option. kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed vnext Target for next major release
Projects
None yet
Development

No branches or pull requests