-
Notifications
You must be signed in to change notification settings - Fork 320
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
SortedCollections is missing is when using fixed versions #425
Comments
The implementation for sorted collections is not yet ready for production use, and it isn't part of any Swift Collections release. This is very intentional -- the |
Issue #1 tracks the task of productizing and shipping these types. This will require considerable effort. The project's current focus is on prototyping noncopyable/nonescapable container variants for Swift's Roadmap for Performance Predictability. Sorted collections isn't part of that, so it is currently on the backburner. |
Oh, sorry, I initially missed that it was an experimental API. That said, it might be helpful if the README and changelog elaborated a bit more on its availability in the release. In any case, thank you so much for the clarifications and for sharing the future plans ❤️ |
I also ran into this issue when just desiring to do some experiments. Could it be exposed via |
I don't mind to use unstable API. It is better than nothing. Besides, if people can't opt-in to use experimental API then we won't be able to provide feedbacks. |
When using this package as a dependency with a fixed version, the SortedCollection target (and the actual directory in the
Sources
directory) is missing. If the main branch is used instead – everything works as expected.Information
Checklist
main
branch of this package.Steps to Reproduce
Test case 1:
Package.swift
to include the Collections package with any exact version starting from 1.1.0main.swift
to import theSortedCollections
and theprint(SortedDictionary<String, String>())
Test case 2:
Expected behavior
Test case 1:
After calling the
swift run
command package compiles without any errors and produces[:]
as an output.When inspecting the
.build/checkouts/swift-collections/Sources
directory theSortedCollections
directory is present.Test case 2:
When inspecting the
Sources
directory theSortedCollections
directory is present.Actual behavior
Test case 1:
Compilation error
no such module 'SortedCollections'
.When inspecting the
.build/checkouts/swift-collections/Sources
directory theSortedCollections
directory is not present.Test case 2:
When inspecting the
Sources
directory theSortedCollections
directory is not present.The text was updated successfully, but these errors were encountered: