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 error (connection failure, Cabal file info not found...) #1123

Closed
langfield opened this issue Oct 29, 2022 · 2 comments
Closed

Build error (connection failure, Cabal file info not found...) #1123

langfield opened this issue Oct 29, 2022 · 2 comments

Comments

@langfield
Copy link

This configuration passes the tests on a local stack installation, but fails on the website.

name: minesweeper
version: 1.1.0.5

dependencies:
  - base

library:
  exposed-modules: Minesweeper
  source-dirs: src
  ghc-options:
    - -Wall
    - -fwrite-ide-info
    - -hiedir=.hie
  dependencies:
    - containers
    - array
    - comfort-array == 0.4.1
  # - foo       # List here the packages you
  # - bar       # want to use in your solution.

tests:
  test:
    main: Tests.hs
    source-dirs: test
    dependencies:
      - minesweeper
      - hspec
Cabal file info not found for comfort-array-0.5.1.1@sha256:77f75e3b1511288db3ea7cac41eb960af6761518a4f48d173120ccf738afa5fa,5572, updating
Selected mirror https://hackage.haskell.org/
Downloading root
HttpExceptionRequest Request {
  host                 = "hackage.haskell.org"
  port                 = 443
  secure               = True
  requestHeaders       = [("Accept-Encoding",""),("User-Agent","Haskell pantry package")]
  path                 = "/root.json"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just "hackage.haskell.org", service name: Just "443"): does not exist (Try again))

Any idea what the issue might be?

@MatthijsBlom
Copy link
Contributor

The testing environment has no internet access, for safety reasons. Cabal tries to download (information on) comfort-array, but this fails.

To ways of dealing with this:

  • Work around using comfort-array, or
  • Convince the track maintainers that comfort-array should be one of the pre-compiled packages.

@langfield
Copy link
Author

I see I see, thanks for the explanation!

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