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

hackage-security cannot gracefully handle absence of package cache directory for file-based remote repositories #4136

Open
ezyang opened this issue Nov 27, 2016 · 3 comments

Comments

@ezyang
Copy link
Contributor

ezyang commented Nov 27, 2016

Steps to reproduce:

  1. In a directory, create .cabal/config file with the following contents:
repository foo-bar
    url: file:/home/ezyang/Dev/labs/localrepo/repo/
    secure: True
    root-keys:
    key-threshold: 0

remote-repo-cache: /home/ezyang/Dev/labs/raclette/.cabal/packages

But you'll need to adjust the two absolute paths to point to a local repository initialized using hackage-repo-tool and the .cabal/packages directory from your current working directory.

Then run HOME=$PWD cabal update and it will fail with:

cabal:
/home/ezyang/Dev/labs/raclette/.cabal/packages/foo-bar/hackage-security-lock:
does not exist
@23Skidoo
Copy link
Member

/cc @edsko

@nomeata
Copy link
Contributor

nomeata commented Jul 19, 2018

I just hit this in my experiment “can I make cabal use an additional, local repository”.

@nomeata
Copy link
Contributor

nomeata commented Jul 19, 2018

BTW, it only happens with local repositories. If I run sws or some webserver in that directory, things work nicely.

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

No branches or pull requests

3 participants