Looks like this was addressed in 0.15.3 but I'm on 0.20.0 and I'm still seeing it. Fetching these providers can be very slow. Here are some logs I see
- Reusing previous version of hashicorp/random from the dependency lock file
goldsky-infra-prod - Reusing previous version of hashicorp/aws from the dependency lock file
goldsky-infra-prod - Reusing previous version of hashicorp/archive from the dependency lock file
goldsky-infra-prod - Reusing previous version of hashicorp/helm from the dependency lock file
goldsky-infra-prod - Reusing previous version of hashicorp/tls from the dependency lock file
goldsky-infra-prod - Reusing previous version of hashicorp/http from the dependency lock file
goldsky-infra-prod - Reusing previous version of hashicorp/cloudinit from the dependency lock file
goldsky-infra-prod - Reusing previous version of hashicorp/kubernetes from the dependency lock file
goldsky-infra-prod - Reusing previous version of dopplerhq/doppler from the dependency lock file
goldsky-infra-prod - Using previously-installed dopplerhq/doppler v1.1.6
goldsky-infra-prod - Using previously-installed hashicorp/random v3.1.3
goldsky-infra-prod - Using previously-installed hashicorp/cloudinit v2.3.5
goldsky-infra-prod - Using previously-installed hashicorp/helm v2.14.0
goldsky-infra-prod - Using previously-installed hashicorp/tls v4.0.5
goldsky-infra-prod - Using previously-installed hashicorp/http v2.1.0
goldsky-infra-prod - Using previously-installed hashicorp/kubernetes v2.31.0
goldsky-infra-prod - Using previously-installed hashicorp/aws v5.61.0
goldsky-infra-prod - Using previously-installed hashicorp/archive v2.6.0
goldsky-infra-prod Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
goldsky-infra-prod - Fetching dopplerhq/doppler 1.1.6 for linux_amd64...
goldsky-infra-prod - Retrieved dopplerhq/doppler 1.1.6 for linux_amd64 (self-signed, key ID D13E9DC04ACCB5E6)
goldsky-infra-prod - Fetching hashicorp/http 2.1.0 for linux_amd64...
goldsky-infra-prod - Retrieved hashicorp/http 2.1.0 for linux_amd64 (signed by HashiCorp)
goldsky-infra-prod - Fetching hashicorp/random 3.1.3 for linux_amd64...
goldsky-infra-prod - Retrieved hashicorp/random 3.1.3 for linux_amd64 (signed by HashiCorp)
goldsky-infra-prod - Fetching hashicorp/archive 2.6.0 for linux_amd64...
goldsky-infra-prod - Retrieved hashicorp/archive 2.6.0 for linux_amd64 (signed by HashiCorp)
goldsky-infra-prod - Fetching hashicorp/kubernetes 2.31.0 for linux_amd64...
goldsky-infra-prod - Retrieved hashicorp/kubernetes 2.31.0 for linux_amd64 (signed by HashiCorp)
goldsky-infra-prod - Fetching hashicorp/helm 2.14.0 for linux_amd64...
goldsky-infra-prod - Retrieved hashicorp/helm 2.14.0 for linux_amd64 (signed by HashiCorp)
goldsky-infra-prod - Fetching hashicorp/cloudinit 2.3.5 for linux_amd64...
goldsky-infra-prod - Retrieved hashicorp/cloudinit 2.3.5 for linux_amd64 (signed by HashiCorp)
goldsky-infra-prod - Fetching hashicorp/aws 5.61.0 for linux_amd64...
goldsky-infra-prod - Retrieved hashicorp/aws 5.61.0 for linux_amd64 (signed by HashiCorp)
goldsky-infra-prod - Fetching hashicorp/tls 4.0.5 for linux_amd64...
goldsky-infra-prod - Retrieved hashicorp/tls 4.0.5 for linux_amd64 (signed by HashiCorp)
goldsky-infra-prod - Obtained hashicorp/cloudinit checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
- Obtained hashicorp/archive checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
- Obtained hashicorp/http checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
- Obtained hashicorp/kubernetes checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
- Obtained hashicorp/tls checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
- Obtained hashicorp/random checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
- Obtained hashicorp/aws checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
- Obtained dopplerhq/doppler checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
- Obtained hashicorp/helm checksums for linux_amd64; All checksums for this platform were already tracked in the lock file
References
2525
Help Wanted
[ ] I'm interested in contributing a fix myself
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
Expected Behavior
CDKTF should not fetch providers if they already exist
Actual Behavior
CDKTF fetches providers on every deploy, even subsequent deploys that did not change providers
Steps to Reproduce
Not sure how to reliably reproduce.
Versions
Providers
No response
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
Looks like this was addressed in 0.15.3 but I'm on 0.20.0 and I'm still seeing it. Fetching these providers can be very slow. Here are some logs I see
References
2525
Help Wanted
Community Note