Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./build-static_by-nix.sh doesn't work #90

Open
noteed opened this issue Feb 20, 2021 · 1 comment
Open

./build-static_by-nix.sh doesn't work #90

noteed opened this issue Feb 20, 2021 · 1 comment

Comments

@noteed
Copy link

noteed commented Feb 20, 2021

I guess this is because of this: nh2/static-haskell-nix#95

For the record, the problem looks like:

$ ./build-static_by-nix.sh 
+ /nix/store/4jl99687r2r5xdxis5g93v7cy5rmzrjb-stack2nix-0.2.3/bin/stack2nix /home/thu/projects/erd --stack-yaml stack.yaml --hackage-snapshot 2019-11-10T00:00:00Z -o /tmp/stack2nix-output-dir.r7OH7G2Zfd/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-16.0.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 "/home/thu/.stack/build-plan/lts-16.0.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"),("X-GitHub-Request-Id","B474:46F0:277EF:345D2:6031156E"),("Accept-Ranges","bytes"),("Date","Sat, 20 Feb 2021 13:58:06 GMT"),("Via","1.1 varnish"),("X-Served-By","cache-ams21053-AMS"),("X-Cache","MISS"),("X-Cache-Hits","0"),("X-Timer","S1613829487.654591,VS0,VE189"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","aa6e14f2c09939438af93bee96f7be59b974b1e7"),("Expires","Sat, 20 Feb 2021 14:03:06 GMT"),("Source-Age","0")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose})
cp: cannot stat '/bin/erd': No such file or directory

Note that the Dockerfile builds fine.

@ddacunha
Copy link

ddacunha commented May 28, 2021

If like me you installed stack via apt install you are likely getting an old version (this is not happening inside the docker).

$ stack --version
1.9.3.1 x86_64

At the time of writing the latest is 2.7.1, you need to do a stack upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants