Closed visortelle closed 2 years ago
Looks like it's not a real package, but still need to handle this situation.
https://www.reddit.com/r/haskell/comments/8t77wi/how_does_the_rts_package_work_how_is_it_related/
This also happens if I directly use a Git repository and a pinned commit tag as a dependency as well, such as with my package's opus
dependency.
There's not a lot we can do to detect this unfortunately, since the cabal file doesn't indicate anything. Rather, in my package, the Stack build manager is responsible for fetching external dependencies, and I believe Cabal isn't even aware that it's not sourced from Hackage.
Perhaps a 404 is good enough.
@yutotakano yeah.
404 with a well-descriptive message should be enough.
Fixed in https://github.com/visortelle/hackage-ui/commit/ff2d125c3f459e6834ddb632440276ecd5da7d74
Better looking error pages will implement later.
Example of such a package:
https://hackage-ui.vercel.app/package/rts
On hackage.haskell.org: