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

joannis.swiftonserver-site cannot link against swift-http-types #234

Open
tayloraswift opened this issue May 22, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@tayloraswift
Copy link
Owner

for some reason, https://swiftinit.org/docs/joannis.swiftonserver-site is failing to link against swift-http-types at 1.1.0

as joannis.swiftonserver-site has 17 dependencies, it’s possible we are hitting some hard-coded resource limit in UnidocDB. although from reading Unidoc.DB.Snapshots.swift 16 is only the stride limit and it ought to support up to 32 dependencies already.

another, more-remote possibility is something weird is happening with the duplicated 1.1 and 1.1.0 tags in the swift-http-types repository…

@tayloraswift tayloraswift added the bug Something isn't working label May 22, 2024
@tayloraswift
Copy link
Owner Author

the 17 dependency count was a red herring, the problem was in fact caused by the maintainer of swift-http-types creating two semver tags (1.1, 1.1.0) that both point to the same commit. the maintainer evidently realized her/his mistake and deleted the tag on GitHub but it remains in Swiftinit’s tag database.

even though the two tags point to the same commit, Swiftinit considers them distinct versions, and it evidently pinned swiftonserver-site to the version that had no symbol graph, making swift-http-types unavailable for linking. Swiftinit pinned the dependency to the wrong version because SwiftPM ignores the git ref string and therefore considers 1.1 and 1.1.0 to belong to an equivalence class. there is no way to disambiguate on Swiftinit’s end because both tags point to the same commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant