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

First pass, uncompiled yet #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

chreekat
Copy link
Owner

cabal install is currently failing with "Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.7.tar.gz", so I'm pausing for the evening!

This PR is a work-in-progress; it will be redirected to haskell/hackage-server when appropriate.

@chreekat
Copy link
Owner Author

  • Consider removing 'id=' altogether, or creating two separate ids for the divs?
  • Make a link in 'consider selecting a preferred version'?
  • Will the lookup that finds the current id's version ever actually fail? ... == Just DeprecatedVersion looks silly, but maybe it's a small price for totality.

@hvr
Copy link

hvr commented Mar 29, 2018

Btw, feel free to post screenshots... so we can see what it looks like w/o having to build this PR :-)

@chreekat
Copy link
Owner Author

chreekat commented Apr 3, 2018

@gbaz you suggested just using Hackage directly to avoid the (persistent) error on the mirror. Sounds like a good idea. In fact, I have no idea why cabal is using a mirror in the first place. I know even less about specifying a mirror, or indeed unspecifying one. I searched the cabal manual to no avail, and there don't appear to be pointers in the --help output either. What did I miss? :)

@gbaz
Copy link

gbaz commented Apr 3, 2018

Cabal auto-falls back to mirrors if it has problems contacting the main server. You may have accidentally specified a mirror in your ~/.cabal/config file otherwise.

If you persistently have trouble connecting to hackage, you may want to play around with your --http-transport settings... (In particular, if you're on windows, you probably want to not use powershell for the time being, since cabal-install had a persistent bug with it that was recently fixed).

@chreekat
Copy link
Owner Author

chreekat commented Apr 3, 2018

I found the 'remote-repo' setting, which looks ok in .cabal/config:

repository hackage.haskell.org
  url: http://hackage.haskell.org/

I am in fact on Linux. The problem is persisting, but just for that one package, xss-sanitize. Everything else is downloading fine. Is there something wrong with this package?

$ for i in 0.1 0.1.1 0.2.0 0.2.1 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.3.0 0.3.0.1 0.3.1 0.3.1.1 0.3.2 0.3.3 0.3.4 0.3.4.1 0.3.4.2 0.3.5 0.3.5.1 0.3.5.2 0.3.5.3 0.3.5.4 0.3.5.5 0.3.5.6 0.3.5.7; do     cabal unpack xss-sanitize-$i;  done
Unpacking to xss-sanitize-0.1/
Unpacking to xss-sanitize-0.1.1/
Unpacking to xss-sanitize-0.2.0/
Unpacking to xss-sanitize-0.2.1/
Unpacking to xss-sanitize-0.2.2/
Unpacking to xss-sanitize-0.2.3/
Unpacking to xss-sanitize-0.2.4/
Unpacking to xss-sanitize-0.2.5/
Unpacking to xss-sanitize-0.2.6/
Downloading xss-sanitize-0.3.0...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.0.tar.gzDownloading xss-sanitize-0.3.0.1...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.0.1.tar.gzDownloading xss-sanitize-0.3.1...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.1.tar.gzDownloading xss-sanitize-0.3.1.1...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.1.1.tar.gzDownloading xss-sanitize-0.3.2...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.2.tar.gzDownloading xss-sanitize-0.3.3...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.3.tar.gzDownloading xss-sanitize-0.3.4...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.4.tar.gzDownloading xss-sanitize-0.3.4.1...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.4.1.tar.gzDownloading xss-sanitize-0.3.4.2...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.4.2.tar.gzDownloading xss-sanitize-0.3.5...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.tar.gzDownloading xss-sanitize-0.3.5.1...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.1.tar.gzDownloading xss-sanitize-0.3.5.2...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.2.tar.gzDownloading xss-sanitize-0.3.5.3...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.3.tar.gzDownloading xss-sanitize-0.3.5.4...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.4.tar.gzDownloading xss-sanitize-0.3.5.5...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.5.tar.gzDownloading xss-sanitize-0.3.5.6...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.6.tar.gzDownloading xss-sanitize-0.3.5.7...
Unexpected response 503for http://objects-us-west-1.dream.io/hackage-mirror/package/xss-sanitize-0.3.5.7.tar.gz

@gbaz
Copy link

gbaz commented Apr 3, 2018

Bizarre! You may find better luck switching transports anyway (as a way of avoiding some sort of weird caching issue -- to be honest i have no idea). For what its worth, I can download from that location on my computer just fine...

@chreekat
Copy link
Owner Author

chreekat commented Apr 4, 2018

Ugh. I was bit by NixOS/nix#395 , though perhaps cabal-install could have reported the error better. (With more verbosity, I did see the "out of space" messages.)

@chreekat
Copy link
Owner Author

chreekat commented Apr 4, 2018

My next blocker is that building hackage-server on NixOS has not proven to be straightforward.

  1. Depending on system libraries (libz) requires setting Cabal flags I haven't used much
  2. Using recent multi-library Cabal features confounds cabal2nix
  3. Writing a Nix expression by hand is probably doable, but slightly onerous

It won't take much research to square this away, but that's where I am for the time being.

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

Successfully merging this pull request may close these issues.

3 participants