-
Notifications
You must be signed in to change notification settings - Fork 455
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
[Notice] Moving pre-built providers to the cdktf
Github organization
#2146
Comments
cdktf
Github organizationcdktf
Github organization
docs need to be updated https://learn.hashicorp.com/tutorials/terraform/cdktf-install?in=terraform/cdktf ps. I am also getting node error when running cdk-go with default example:
|
cdktf
Github organizationcdktf
Github organization
Hi All, I was hoping to get some assistance because I'm not able to get Go to work with 0.13.0 due to the provider organization change. I started from scratch with a vanilla project:
Then I went ahead and added the provider cdktf provider add "aws@~>4.0"
Checking whether pre-built provider exists for the following constraints:
provider: aws
version : ~>4.0
language: go
cdktf : 0.13.0
Found pre-built provider.
Adding package github.com/hashicorp/cdktf-provider-aws-go/aws @ 10.0.1
[2022-10-04T13:35:25.152] [ERROR] default - go: upgraded github.com/aws/constructs-go/constructs/v10 v10.1.113 => v10.1.121
go: upgraded github.com/aws/jsii-runtime-go v1.68.0 => v1.69.0
go: added github.com/hashicorp/cdktf-provider-aws-go/aws/v10 v10.0.1
go: upgraded github.com/aws/constructs-go/constructs/v10 v10.1.113 => v10.1.121
go: upgraded github.com/aws/jsii-runtime-go v1.68.0 => v1.69.0
go: added github.com/hashicorp/cdktf-provider-aws-go/aws/v10 v10.0.1
Package installed. Everything looks good so far except when I try to replace the org from hashicorp -> cdktf (I have tried both via gofmt, manually, as well running All of the above results in nothing being changed and when manually changing and running go get it fails with the error you presented in your wiki. Maybe I am missing something but I have been unsuccessful. I also attempted manually installing it: go get -u github.com/cdktf/cdktf-provider-aws-go/aws/v10
go: github.com/cdktf/cdktf-provider-aws-go/aws/[email protected]: parsing go.mod:
module declares its path as: github.com/hashicorp/cdktf-provider-aws-go/aws/v10
but was required as: github.com/cdktf/cdktf-provider-aws-go/aws/v10 |
@dzeediscoveryzone Sorry, this was a bit of a timing issue on our part, but v10.0.2 of the AWS provider should work out of the box for your use case. v10.0.1 was still referencing the old Github repo path in it's Can you try again with v10.0.2 and see if it works? I believe just running |
@mutahhir no problem at all and thank you for the quick turnaround! My issue is now resolved. 🎉 |
All existing pre-built providers will be relocating to our new Github organization
cdktf
(see #2135).For the vast majority of CDKTF users, this won’t affect how you reference the providers, as you’re consuming them through your language-specific package manager: NPM, PyPI, Maven, etc. However, for Golang users of CDKTF, this is something to be aware of. Soon, the module naming will switch from:
to
There is no need for any immediate action, but over the course of the next few days if you see the Go CLI complain about:
Regarding one or more of the pre-built providers, change the module path to the one with
github.com/cdktf
.You could also use Go tools to do the replace for you (replace
hashicups
with your provider):As another example, if you were using the AWS provider, the first command above becomes:
$ gofmt -w -r '"github.com/hashicorp/cdktf-provider-aws-go/aws/v9" -> "github.com/cdktf/cdktf-provider-aws-go/aws/v9"' ./
The text was updated successfully, but these errors were encountered: