Skip to content

Namespaced templates don't work on windows #4394

@bradrn

Description

@bradrn

Steps to reproduce

Run stack new test-yesod yesodweb/simple.

Expected

Downloads the template at https://github.com/yesodweb/stack-templates/blob/master/simple.hsfiles.

Actual

Errors with That template doesn't exist:

> stack new test-yesod yesodweb/simple --verbose
Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86_64 hpack-0.31.0
2018-11-12 17:58:24.419878: [debug] Opening local template: "yesodweb\simple.hsfiles"
2018-11-12 17:58:24.419878: [info] Downloading template "yesodweb/simple" to create project "test-yesod" in test-yesod\ ...
2018-11-12 17:58:24.419878: [debug] Downloading /commercialhaskell/stack-templates/master/yesodweb%5Csimple.hsfiles
That template doesn't exist. Run `stack templates' to discover available templates.

The problem seems to be that stack is still looking in the https://github.com/commercialhaskell/stack-templates repo - but even when I change it to the URL it still doesn't work:

> stack new test-yesod https://github.com/yesodweb/stack-templates/simple.hsfiles -v
Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86_64 hpack-0.31.0
2018-11-12 18:02:00.203221: [info] Downloading template "https://github.com/yesodweb/stack-templates/simple.hsfiles" to create project "test-yesod" in test-yesod\ ...
2018-11-12 18:02:00.203221: [debug] Downloading /yesodweb/stack-templates/simple.hsfiles
That template doesn't exist. Run `stack templates' to discover available templates.

Stack version

> stack --version
Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86_64 hpack-0.31.0

(Also, I'm using Windows.)

Method of installation

Official binary, downloaded from stackage.org or fpcomplete's package repository

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions