Skip to content

stack2nix fails with 404 with lts-15.13 #95

Closed
@matsumonkie

Description

@matsumonkie

Hello!
First things first, thanks a lot for this work, it might help me a lot.

I'm trying to build a static binary from a stack project based. My project is using stack lts-15.13 with gh883. When I try to build the adapted default.nix, stack2nix fails with a 404:

 % $(nix-build --no-link -A fullBuildScript)
+ /nix/store/4jl99687r2r5xdxis5g93v7cy5rmzrjb-stack2nix-0.2.3/bin/stack2nix /home/iori/Work/patchGirl2/back --stack-yaml stack.yaml --hackage-snapshot 2019-10-08T00:00:00Z -o /tmp/stack2nix-output-dir.q5rywLgu3b/stack2nix-output.nix

Ensuring git version is >= 2 ...
Ensuring cabal version is >= 2 ...
stack2nix: RedownloadInvalidResponse Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/fpco/lts-haskell/master//lts-15.13.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 "/home/iori/.stack/build-plan/lts-15.13.yaml" (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Connection","keep-alive"),("Content-Length","14"),("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'; sandbox"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","1; mode=block"),("Content-Type","text/plain; charset=utf-8"),("Via","1.1 varnish (Varnish/6.0)"),("X-GitHub-Request-Id","9E3C:51E6:45222:54D20:5EE1FA35"),("Accept-Ranges","bytes"),("Date","Thu, 11 Jun 2020 09:32:37 GMT"),("Via","1.1 varnish"),("X-Served-By","cache-cdg20740-CDG"),("X-Cache","MISS, MISS"),("X-Cache-Hits","0, 0"),("X-Timer","S1591867957.157747,VS0,VE444"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","1f20cd3df7a973cb09e66cd12d6ffbe7f5b31e62"),("Expires","Thu, 11 Jun 2020 09:37:37 GMT"),("Source-Age","0")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose})

It seems the issue comes from path = "/fpco/lts-haskell/master//lts-15.13.yaml" and the double slash.
So my question is, is lts-15.13 supported ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions