Skip to content

Spack on Windows never hits the source mirror, because url is constructed with \ instead of / #47847

@alalazo

Description

@alalazo

Steps to reproduce

On a Windows machine:

[spack] PS spack>spack  fetch netcdf-cxx4  
==> Error: All fetchers failed for netcdf-cxx4-4.3.1-yxbeiyt
    https://mirror.spack.io/_source-cache\archive\6a\6a1189a181eed043b5859e15d5c080c30d0e107406fbb212c8fb9814e90f3445.tar.gz: DetailedHTTPError: GET https://mirror.spack.io/_source-cache\archive\6a\6a1189a181eed043b5859e15d5c080c30d0e107406fbb212c8fb9814e90f3445.tar.gz ret
urned 404: Not Found
    ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx4-4.3.1.tar.gz: URLError: <urlopen error [Errno 11001] getaddrinfo failed>

Note that the first url searched is:

https://mirror.spack.io/_source-cache\archive\6a\6a1189a181eed043b5859e15d5c080c30d0e107406fbb212c8fb9814e90f3445.tar.gz

Error message

See above

Information on your system

  • Spack: 0.24.0.dev0 (a575fa8)
  • Python: 3.12.7
  • Platform: windows-windows10.0.19045-broadwell

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Type

No type

Projects

Status

Done

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions