You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix swift package describe for packages with binary artifacts that has a .zip extension. (#8809)
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 a `BinaryArtifact` object when the file extension is `.zip`.
This change is also based on the comment referenced
[here](#5826 (comment)).
### 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.
0 commit comments