-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix swift package describe
for packages with binary artifacts that has a .zip extension.
#8809
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
base: main
Are you sure you want to change the base?
Fix swift package describe
for packages with binary artifacts that has a .zip extension.
#8809
Conversation
…has a .zip extension.
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this change. would it be possible to add a test that ensures we don't accidentally re-introduce this issue?
…BinaryDependencies
@bkhouri Test results on the main branch
Test results on this branch
|
@swift-ci please test |
@swift-ci test windows |
The test |
@swift-ci test self hosted windows |
@bkhouri |
Fix
swift package describe
for packages with binary artifacts that has a .zip extension.Motivation:
Fixes #4387
I want to avoid an error when running
swift package describe
on a package that contains a binary artifact target with a.zip
extension.Modifications:
I modified the
Workspace.loadRootPackage(at:observabilityScope:completion)
method. Specifically, I updated the logic for local binary targets to also return aBinaryArtifact
object when the file extension is.zip
.This change is also based on the comment referenced here.
Result:
When running
swift package describe
on a package that contains a binary artifact target with a.zip
extension, the package description is now output without throwing an error.