-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
terraform init cannot compute checksum on Windows 10 #36357
Comments
Hi @borrrden, There is really only one system call which would return that Windows error from that point, which is where the file is opened, so there not really anything else that it could be failing to find. The path is first normalized with Do you have multiple filesystems or volumes linked together (I'm not sure what the windows terminology is for this)? The What we need to do here is either need to figure out how your system differs from other similar systems, or create a reproducible example for further investigation. Thanks! |
I do not have multiple filesystems here. The unprintable character there is just because I use a profile to make things print a little more pretty. Here is the output without a profile set:
|
Ok I found the problem actually. You reminded me that |
Is there any documentation around the fact that symlinks are not allowed in the path? |
Symlinks should be fine (they definitely work on unix systems), so this is something specific to Windows that will need to be investigated. |
Ok, let me know if you want me to provide any context or information. This won't block me now that I know how to work around the issue, but I appreciate that I am the minority probably in that I am a full time developer that spends 90+% of my time in Windows (or WSL). On that note, here is the symlink in question. I forget if I made it a junction or an actual symlink (with admin)
|
IIRC junctions on Windows are not symlinks, but "reparse points", so they end up being evaluated differently in different contexts. I don't use Windows, so I'm not familiar with the details, but problems resolving paths over junctions sounds like a problem I've seen before. We'll have to see what |
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/borrrden/65db1481e5e2a1e88e2cc6b64ce4b849
Expected Behavior
The init should succeed
Actual Behavior
The error message
But, this file exists so I'm guessing it is something ELSE that cannot be found:
Steps to Reproduce
terraform init
Additional Context
No response
References
No response
Generative AI / LLM assisted development?
No response
The text was updated successfully, but these errors were encountered: