-
Notifications
You must be signed in to change notification settings - Fork 701
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
Implement file+noindex:///local/repositories #6448
Conversation
d93655e
to
85ea17c
Compare
7f7633b
to
74c8ea4
Compare
I used the current state to build hadrian in "offline" mode, see https://gitlab.haskell.org/ghc/ghc/merge_requests/2348 I'll merge this soon to backport to 3.2 branch. Please review. |
This is exactly functionality that I was sorely missing the last time that I worked on trying to redesign/fix |
@typedrat could you expand on that? What breaks with Creating a temporary
I.e. we have develop a small configuration language for cabal/cabal-install/Distribution/Client/IndexUtils.hs Lines 276 to 278 in 787b1f2
PackageIndex merge cabal/cabal-install/Distribution/Solver/Types/PackageIndex.hs Lines 151 to 169 in 787b1f2
|
Note: the overriding is not important for offline usage, as there you would specify the sole |
Resolve haskell#6359 `preferred-versions` are left out for now. It shouldn't be difficult to add, but needs work nevertheless. We also allow relative paths, which kind of work, if you are careful. In addtition - change the index cache to use `Distribution.Utils.Structured`, making Binary instances generically derived. - separate Distribution.Client.HashValue into own module. This allows to use HashValue for hashing the part of localRepoPath (breaks module dependency cycle). Almost as a feature generated 01-index.cache is never updated. If you change the contents of the directory, you have to purge 01-index.cache file yourself.
74c8ea4
to
a07ef25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks for doing this!
Backported to |
Resolve #6359
preferred-versions
are left out for now.It shouldn't be difficult to add, but needs work nevertheless.
Also change the index cache to use
Distribution.Utils.Structured
,making Binary instances generically derived.
Almost as a feature generated 01-index.cache is never updated.
If you change the contents of the directory, you have to purge
01-index.cache file yourself.