-
Notifications
You must be signed in to change notification settings - Fork 843
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
Stack assumes IPIDs have a specific format #851
Comments
That issue didn't clarify for me what will become of the format, other than that it will change. Currently we parse (from
where From that module we export access to the What will be the new format of the |
OK, if it is a really big problem for Stack to fix this we can try to keep the full package identifier in the IPID (our change is mostly to the hash format, but we were considering dropping the version to keep symbol names small). However, shouldn't it always be possible to get the package name and version given an IPID by consulting |
It's not a really big problem, it's just vague. If a package id no longer contains anything but a hash, then a re-interpretation of the |
OK, well, assuming symbol name sizes don't end up being a problem, it's not too hard to accommodate you guys by keeping the format the same (if you're fine with any sort of alphanumeric hash format). |
@ezyang What are the restrictions on what an IPID can be? Can it contain spaces? Non-Latin characters? From what I've seen, A-Za-z0-9 and - should be it. Is that accurate? |
Pull request #902 opened to address this. I'm going to close this issue, let's discuss on the PR |
parseGhcPkgId
assumes that an installed package ID is always a package name, a version, and a hash. IPIDs are opaque identifiers generated by Cabal, and Cabal reserves the right to change them (and will be changing them soon, c.f. haskell/cabal#2745 )The text was updated successfully, but these errors were encountered: