offline-stack icon indicating copy to clipboard operation
offline-stack copied to clipboard

Support stack new

Open ndmitchell opened this issue 8 years ago • 2 comments

"stack new" fails in both cases with: HttpExceptionRequest Request { host = "raw.githubusercontent.com" port = 443 secure = True requestHeaders = [("If-None-Match",""8ef96691e15d68bb890626821e8624b1b19e0b6c"")] path = "/commercialhaskell/stack-templates/master/new-template.hsfiles" queryString = "" method = "GET" proxy = Nothing rawBody = False redirectCount = 10 responseTimeout = ResponseTimeoutDefault requestVersion = HTTP/1.1 }

ndmitchell avatar Feb 17 '17 06:02 ndmitchell

As far as I can tell, the URL/path are hardcoded, see https://github.com/commercialhaskell/stack/blob/master/src/Stack/New.hs, in particular defaultTemplateUrl and similar.

ndmitchell avatar Feb 19 '17 14:02 ndmitchell

Known issue, raised at https://github.com/commercialhaskell/stack/issues/2804.

ndmitchell avatar Feb 19 '17 14:02 ndmitchell