Used the the above instructions with GO and getting the following error messages ?!
Anybody encountered the similar issue? and what is the solution?
---------------------->
Checking whether pre-built provider exists for the following constraints:
provider: aws
version : ~>4.0
language: go
cdktf : v0.12.0
go get: module github.com/hashicorp/cdktf-provider-aws-go@upgrade found (v0.0.0-20220804010506-f53ab9125fed), but does not contain package github.com/hashicorp/cdktf-provider-aws-go/aws
Error: non-zero exit code 1
at ChildProcess. (/home/ec2-user/.nvm/versions/node/v16.15.1/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:433:933)
at Object.onceWrapper (node:events:642:26)
at ChildProcess.emit (node:events:527:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Socket. (node:internal/child_process:451:11)
at Socket.emit (node:events:527:28)
at Socket.emit (node:domain:475:12)
at Pipe. (node:net:709:12)
Collecting Debug Information…
/home/ec2-user/.nvm/versions/node/v16.15.1/lib/node_modules/cdktf-cli/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
Error: non-zero exit code 1
at ChildProcess. (/home/ec2-user/.nvm/versions/node/v16.15.1/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:433:933)
at Object.onceWrapper (node:events:642:26)
at ChildProcess.emit (node:events:527:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Socket. (node:internal/child_process:451:11)
at Socket.emit (node:events:527:28)
at Socket.emit (node:domain:475:12)
at Pipe. (node:net:709:12) {
stderr: ‘go get: module github.com/hashicorp/cdktf-provider-aws-go@upgrade found (v0.0.0-20220804010506-f53ab9125fed), but does not contain package github.com/hashicorp/cdktf-provider-aws-go/aws\n’
}
~ cdktf provider add "aws@~>4.0" 10.9s Sun 07 Aug 2022 07:49:26 PM JST
Checking whether pre-built provider exists for the following constraints:
provider: aws
version : ~>4.0
language: go
cdktf : v0.12.0
Found pre-built provider.
Adding package github.com/hashicorp/cdktf-provider-aws-go/aws @ 9.0.10
[2022-08-07T19:49:42.565] [ERROR] default - go: downloading github.com/hashicorp/cdktf-provider-aws-go v0.0.0-20220804010506-f53ab9125fed
go: downloading github.com/hashicorp/cdktf-provider-aws-go v0.0.0-20220804010506-f53ab9125fed
[2022-08-07T19:49:42.650] [ERROR] default - go: module github.com/hashicorp/cdktf-provider-aws-go@upgrade found (v0.0.0-20220804010506-f53ab9125fed), but does not contain package github.com/hashicorp/cdktf-provider-aws-go/aws
go: module github.com/hashicorp/cdktf-provider-aws-go@upgrade found (v0.0.0-20220804010506-f53ab9125fed), but does not contain package github.com/hashicorp/cdktf-provider-aws-go/aws
Error: non-zero exit code 1
at ChildProcess.<anonymous> (/home/linuxbrew/.linuxbrew/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:433:933)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.emit (domain.js:475:12)
at maybeClose (internal/child_process.js:1088:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
Collecting Debug Information...
(node:5638) UnhandledPromiseRejectionWarning: Error: non-zero exit code 1
at ChildProcess.<anonymous> (/home/linuxbrew/.linuxbrew/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:433:933)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.emit (domain.js:475:12)
at maybeClose (internal/child_process.js:1088:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:5638) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:5638) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Debug Information:
language: go
cdktf-cli: 0.12.0
node: v14.20.0
cdktf: v0.12.0
constructs: v10.1.56
jsii: v1.62.0
terraform: 1.2.6
arch: x64
os: linux 5.15.57.1-microsoft-standard-WSL2
go: go version go1.18.5 linux/amd64