-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Describe the bug
It is not possible to use the TF code examples on windows. Almost every github hosted TF module has files with colons in the filename which is invalid on windows. It results in errors like this when running terraform init
Error: Failed to download module │ │ on main.tf line 49: │ 49: module "bastion" { │ '.terraform\modules\bastion'... │ error: invalid path '.github/workflows/fmt:check.yml' │ fatal: unable to checkout working tree │ warning: Clone succeeded, but checkout failed. │ You can inspect what was checked out with 'git status' │ and retry with 'git restore --source=HEAD :/'
Most repos have a .github/workflows folder with several files started with fmt: in the filename
Reproducing the Bug
copy a main.tf example from one of the various repos
cd to the directory
run terraform init
Expected Behavior
expect terraform to download the module in its entirety from github without errors.
Screenshots
Any Additional Context
Currently have to use WSL to run the code examples which complicates the workflow.