Tests for creating/retrieving metadata revisions, remove broken alternative revision path - #1448
Merged
Merged
Conversation
This reverts commit 113d4df. Fixes haskell#1439 by removing the bad link altogether.
spencerjanssen
force-pushed
the
test-revisions
branch
from
January 5, 2026 19:08
5457664 to
f48c01b
Compare
spencerjanssen
marked this pull request as ready for review
January 5, 2026 19:13
Contributor
|
Thanks for this! That user seems deactivated and their PR if it ever existed is deleted. Not sure what it was all about, but might as well go. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds test coverage for:
/package/testpackage-1.0.0.0/revision/1.cabal/package/testpackage-1.0.0.0/revision/testpackage-1.0.0.0-r1.cabalThe first and second tests pass. The third does not, this is #1439.
113d4df introduced version-revision paths. I question whether this feature ever worked. The
resourceAtdefinition here:hackage-server/src/Distribution/Server/Features/Core.hs
Line 461 in 113d4df
Is parsed as
[DynamicBranch "tarball-:revision",StaticBranch "revision",DynamicBranch "package",StaticBranch "package"]. The code expects to find separatetarballandrevisioninDynamicPathbut won't get them.I'm not sure what the proper way forward is here. Does it make sense to revert 113d4df? I'm not sure what use-case it was trying to fulfill.
Update: I went ahead and reverted 113d4df. The longer revision URLs don't work, probably never worked, aren't trivial to fix, and the purpose of them is unclear.