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

Receiving duplicate imports in pulumiUtilities.go in SDK Code Gen #16153

Open
zbuchheit opened this issue May 8, 2024 · 2 comments
Open

Receiving duplicate imports in pulumiUtilities.go in SDK Code Gen #16153

zbuchheit opened this issue May 8, 2024 · 2 comments
Labels
area/codegen SDK-gen, program-gen, convert awaiting-feedback Blocked on input from the author customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs kind/bug Some behavior is incorrect or out of spec language/go needs-repro Needs repro steps before it can be triaged or fixed

Comments

@zbuchheit
Copy link

What happened?

While generating the sdk code for a bridge provider, the pulumiUtilities.go file contains duplicate imports.

Example

The duplicate import looks like the following after running tfgen

package internal

import (
	"fmt"
	"os"
	"reflect"
	"regexp"
	"strconv"
	"strings"

	"github.com/blang/semver"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

import (
	"fmt"
	"os"
	"reflect"
	"regexp"
	"strconv"
	"strings"

	"github.com/blang/semver"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/internals"
)

type envParser func(v string) interface{}
// ... omitted for brevity

Output of pulumi about

N/A

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).

@zbuchheit zbuchheit added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs labels May 8, 2024
@Frassle Frassle added language/go area/codegen SDK-gen, program-gen, convert labels May 9, 2024
@justinvp justinvp removed the needs-triage Needs attention from the triage team label May 13, 2024
@justinvp
Copy link
Member

@zbuchheit, have you been able to reproduce this?

@zbuchheit
Copy link
Author

I have not. I'll follow up on it this week

@mikhailshilkov mikhailshilkov added awaiting-feedback Blocked on input from the author needs-repro Needs repro steps before it can be triaged or fixed labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/codegen SDK-gen, program-gen, convert awaiting-feedback Blocked on input from the author customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs kind/bug Some behavior is incorrect or out of spec language/go needs-repro Needs repro steps before it can be triaged or fixed
Projects
None yet
Development

No branches or pull requests

4 participants