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: installing pre-built aws provider results in "file name too long" error #2510

Closed
justabaka opened this issue Jan 18, 2023 · 3 comments · Fixed by #2653
Closed

Golang: installing pre-built aws provider results in "file name too long" error #2510

justabaka opened this issue Jan 18, 2023 · 3 comments · Fixed by #2653
Assignees
Labels
bug Something isn't working pre-built providers Issues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager priority/important-soon High priority, to be worked on as part of our current release or the following one.
Milestone

Comments

@justabaka
Copy link

justabaka commented Jan 18, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

cdktf & Language Versions

language: go
cdktf-cli: 0.15.0
node: v18.12.1
cdktf: 0.15.0
constructs: 10.1.167
jsii: 1.73.0
terraform: 1.3.7
arch: x64
os: linux 5.15.0-58-generic
go: go version go1.19.5 linux/amd64

Affected Provider / Resource(s)

cdktf-provider-aws-go/aws @ 12.0.0

Debug Output

https://gist.github.com/justabaka/82f3f595ffe7c9660d64adc515827e63

Expected Behavior

cdktf init --template="go" --providers="aws@~>4.0" or cdktf provider add "aws@~>4.0" work, pre-built provider is installed.

Actual Behavior

Provider is not installed due to the 'file name too long' error.

Steps to Reproduce

  • install golang (any version, issue reproduces on 1.19, 1.18 and 1.16)
  • install cdktf v0.15.0 as per guide
  • initialize an empty project and install the aws provider: cdktf init --template="go" --providers="aws@~>4.0"

Important Factoids

  • go get github.com/cdktf/cdktf-provider-aws-go/aws/v12@v12.0.0 also produces the same error
  • my username consists of 9 characters
  • filenames in cdktf-provider-aws-go really are absurdly enormous: e.g., aws/appautoscalingpolicy/appautoscalingpolicy_AppautoscalingPolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationDimensionsList__no_runtime_type_checking.go consists of 154 characters itself, even if you ignore all the path parts
  • node.js is installed via nvm in case it matters

References

  • #0000
@justabaka justabaka added bug Something isn't working new Un-triaged issue pre-built providers Issues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager labels Jan 18, 2023
@mutahhir mutahhir added this to the 0.15.1 milestone Jan 18, 2023
@mutahhir mutahhir added priority/important-soon High priority, to be worked on as part of our current release or the following one. and removed new Un-triaged issue labels Jan 18, 2023
@DanielMSchmidt
Copy link
Contributor

This is something we will need to fix in jsii-pacmac, removing some of the duplication in the filename

@DanielMSchmidt DanielMSchmidt self-assigned this Jan 30, 2023
@DanielMSchmidt
Copy link
Contributor

aws/jsii#3927

@github-actions
Copy link
Contributor

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working pre-built providers Issues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager priority/important-soon High priority, to be worked on as part of our current release or the following one.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants