pulumi / pulumi-terraform-bridge

A library allowing Terraform providers to be bridged into Pulumi.
Apache License 2.0
194 stars 43 forks source link

Plugin download issue during build: 404 HTTP error fetching plugin #1247

Open theogravity opened 1 year ago

theogravity commented 1 year ago

What happened?

I upgraded to

github.com/pulumi/pulumi-terraform-bridge/v3 v3.50.1
github.com/pulumi/pulumi/sdk/v3 v3.71.0

https://github.com/theogravity/pulumi-fusionauth/actions/runs/5383494641/jobs/9770482050

running make build_go

    * failed to convert HCL for #/resources/fusionauth:index/fusionAuthApplicationRole:FusionAuthApplicationRole to typescript: get latest version: 404 HTTP error fetching plugin from https://api.github.com/repos/pulumi/pulumi-fusionauth/releases/latest. If this is a private GitHub repository, try providing a token via the GITHUB_TOKEN environment variable. See: https://github.com/settings/tokens
    * 

The URL should be https://api.github.com/repos/theogravity/pulumi-fusionauth/releases/latest not https://api.github.com/repos/pulumi/pulumi-fusionauth/releases/latest

Not sure where to change / adjust this behavior

Expected Behavior

Plugin URL should be correct.

Steps to reproduce

I'm only able to reproduce it in the CI for my plugin: https://github.com/theogravity/pulumi-fusionauth

I didn't have issues around this in the past.

Output of pulumi about

CLI          
Version      3.72.1
Go Version   go1.20.5
Go Compiler  gc

Host     
OS       darwin
Version  13.4.1
Arch     arm64

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/theogravity
User           theogravity
Organizations  theogravity

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

AaronFriel commented 1 year ago

Thanks for reporting this, using a previous version of the bridge, pulumi/pulumi/pkg and /sdk dependencies may be necessary as a workaround.

theogravity commented 1 year ago

Yeah, using what I was using prior fixes the issue.

replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220824175045-450992f2f5b9

require (
    github.com/gpsinsight/terraform-provider-fusionauth v0.1.90
    github.com/pulumi/pulumi-terraform-bridge/v3 v3.42.1
    github.com/pulumi/pulumi/sdk/v3 v3.57.1
)