Skip to content

Cannot checkout repository on windows because of file names with ":" in it #165

Open
@bhirt

Description

@bhirt

I have a windows swift project that recently had swift-distributed-tracing included as a dependency from some other dependency. However, since there are files in this repository with a colon ':' in the filename, the repo cannot be checked out. NTFS does not allow ":" in file/path names.

I haven't looked too much into this, and I'm not sure if it's something this team is interested in addressing. It may be good practice to not use ":" in filenames, especially since there is a growing windows swift community -- and not using a colon is pretty minor inconvenience.

PS C:\tmp> git clone https://github.com/apple/swift-distributed-tracing.git
Cloning into 'swift-distributed-tracing'...
remote: Enumerating objects: 3437, done.
remote: Counting objects: 100% (780/780), done.
remote: Compressing objects: 100% (286/286), done.
remote: Total 3437 (delta 675), reused 497 (delta 494), pack-reused 2657 (from 1)
Receiving objects: 100% (3437/3437), 2.01 MiB | 4.26 MiB/s, done.
Resolving deltas: 100% (2206/2206), done.
error: invalid path 'Benchmarks/Thresholds/5.10/TracingBenchmarks.NoopTracing.attribute:_set,_span.attributes.http.status_code_=_200.p90.json'
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 :/'
PS C:\tmp>

Thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions