Skip to content

problems cloning repos on windows #21

@snowman386

Description

@snowman386

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

Image

Any Additional Context
Currently have to use WSL to run the code examples which complicates the workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions