Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

taji-taji
Copy link
Contributor

@taji-taji taji-taji commented Jun 12, 2025

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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SR-15243] swift package describe Failing for Package with binary targets
1 participant