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

local noindex repository cannot update on windows #8018

Open
aavogt opened this issue Feb 27, 2022 · 1 comment
Open

local noindex repository cannot update on windows #8018

aavogt opened this issue Feb 27, 2022 · 1 comment

Comments

@aavogt
Copy link

aavogt commented Feb 27, 2022

I installed cabal-3.6.2.0 on windows 11 with ghcup. I am using ghc-8.10.7

In C:\cabal\config I have two repositories that should contain the same packages:

repository localNoindex
  url: file+noindex:///cabal/localrepo/package

repository local
  url: file:///cabal/localrepo
  secure: True
  root-keys: 1f7fe92197eeb58a214d89b7e7ff1043cadddc5aa4fe185b3571ae8bab65cb14
     7ced667343b4bca5c5b36f9f1b24e3ac9d48344eda1f48f644d4bb4dd9cc2458
     8e9e98bab40e7a3e2ed33be2209ab3d7e85955d36c91ff9b615f8d4c1ebe433f

The directories look like:

$ ls /c/cabal/localrepo/package
hgeometry-0.13.tar.gz
$ tar xf hgeometry-0.13.tar.gz && ls hgeometry-0.13 # same as on hackage
LICENSE    Setup.hs   changelog      docs         hgeometry.cabal
README.md  benchmark  changelog.org  doctests.hs  src

localNoindex does not work:

$ cabal update localNoindex
Downloading the latest package list from localNoindex
cabal-3.6.2.0.exe: Error while updating index for localNoindex repository
dieVerbatim: user error (cabal-3.6.2.0.exe: Cannot read .cabal file inside
hgeometry-0.13.tar.gz
)

local works just fine but it needs extra steps to stay up-to-date (following https://hackage.haskell.org/package/hackage-repo-tool).

@Mikolaj
Copy link
Member

Mikolaj commented Feb 28, 2022

I wonder if that's Windows-specific.

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

2 participants