Skip to content

Support for GHCup "mirrors" configuration #426

@ruifengx

Description

@ruifengx

先决条件 (Prerequisites)

修改或删除的原因 (Reasons of the modification or removal)

This is the latest version of the official configuration guide:

https://www.haskell.org/ghcup/guide/#mirrors-proper

To use this method, GHCup expects to find the files under $host/$pathPrefix/haskell/ghcup-metadata/. The mirror, as it is currently configured, puts all the files under ghcup/ghcup-metadata/.

配置方法 (Configuration method)

The easiest solution AFAIK is to serve the same set of files under both ghcup/haskell/ghcup-metadata/ (for mirrors support with $pathPrefix = ghcup) and ghcup/ghcup-metadata/ (for backwards compatibility). I think the server can be configured to simply redirect one URL to the other.

修改后的镜像大小 (Mirror size after modification)

No change expected

备注 (Note)

No response

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