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-repo-tool bootstrap fails in a mysterious way if there are no tarballs #174

Open
ezyang opened this issue Nov 26, 2016 · 3 comments
Labels

Comments

@ezyang
Copy link
Contributor

ezyang commented Nov 26, 2016

Steps to reproduce:

  1. Run hackage-repo-tool bootstrap on a directory that doesn't exist. Get:
ezyang@sabre:~/Dev/labs/localrepo$ /srv/code/hackage-security/dist-newstyle/build/x86_64-linux/ghc-7.10.3/hackage-repo-tool-0.1.1/c/hackage-repo-tool/build/hackage-repo-tool/hackage-repo-tool bootstrap --keys keys --repo repo
/srv/code/labs/localrepo/repo: getDirectoryContents: does not exist (No such file or directory)
  1. Create the directory and try again.
ezyang@sabre:~/Dev/labs/localrepo$ /srv/code/hackage-security/dist-newstyle/build/x86_64-linux/ghc-7.10.3/hackage-repo-tool-0.1.1/c/hackage-repo-tool/build/hackage-repo-tool/hackage-repo-tool bootstrap --keys keys --repo repo
/srv/code/labs/localrepo/repo/index: getDirectoryContents: does not exist (No such file or directory)
  1. Create the directory and try again
ezyang@sabre:~/Dev/labs/localrepo$ /srv/code/hackage-security/dist-newstyle/build/x86_64-linux/ghc-7.10.3/hackage-repo-tool-0.1.1/c/hackage-repo-tool/build/hackage-repo-tool/hackage-repo-tool bootstrap --keys keys --repo repo
/srv/code/labs/localrepo/repo/01-index.tar: openBinaryFile: does not exist (No such file or directory)

That last error is incredibly oblique. You can solve it by adding a tarball to the package subdir. Totally non-obvious.

@nomeata
Copy link

nomeata commented Jul 19, 2018

Just stumbled over this. A helpful error message (please create a package subdirectory with tarballs in it) would have been useful.

@hvr
Copy link
Member

hvr commented Jul 20, 2018

@nomeata patches welcome! I briefly looked at this some time ago, but had to give up due to lack of time

@nomeata
Copy link

nomeata commented Jul 20, 2018

I was worried someone would say that ;-)

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

No branches or pull requests

3 participants