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
[SR-9191] swift package dump-package format unstable #4748
Comments
@swift-ci create |
I don't think "dump" is ever something stable in the Swift ecosystem, but it should probably be documented one way or another. |
@belkadan what's its point if it's not stable? And yes, it really ought to be documented. |
Debugging. It lets a SwiftPM dev see whether a package got set up correctly. But I could be wrong about this particular case, or there might be a terminology difference between SwiftPM and the compiler. |
This command was added during early stages of SwiftPM development without any promises of stability. Also, the way json was extracted was super hacky and presented difficultly in maintaining a stable format. However, after the refactor done this year, we're in a much better position to provide a stable format. But we need to put proper testing in place and add a version number before we declare it is stable. I agree that we should mark it as unstable in the documentation until we get stability. |
@belkadan if it were for debugging only it should be a hidden command I'd say. When I wrote the cross-compilation support we said that it's maybe not officially supported so But I'm glad @aciidb0mb3r alludes to maybe having a stable format soon. |
@swift-ci create |
Additional Detail from JIRA
md5: 1fdaaa6d715fefa89964685c799d38cb
Issue Description:
description
swift package dump-package
looks like an API to me but its format seems to change which makes this command not very useful... It's not even documented as unstable.NIO's
list_topsorted_dependenies.sh
script for example relies on the dependencies having aname
property but that seems to be now gone.expected
the output of
only adds new properties
actual
the format seems to be totally unstable:
$ diff -u <(swift package dump-package | jq .) <(/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2018-10-03-a.xctoolchain/usr/bin/swift package dump-package | jq .)
The text was updated successfully, but these errors were encountered: