Skip to content
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

Added ability to read package manifest json from provided path #732

Merged
merged 3 commits into from
May 19, 2024

Conversation

rock88
Copy link
Contributor

@rock88 rock88 commented May 12, 2024

Hello! I want to write a plugin for Swift Package Manager and I'm running into an issue where SPM doesn't allow to run swift package describe in plugins (due to plugin sandbox limitation). As a workaround we can perform this command manually (before plugin usage) or generate in the plugin using PackagePlugin.Package/Target. So I added an extra argument to the scan command - --json-package-manifest-path and serialize SPM.Package from that path if it exists.

You can check out the proof of concept for a possible Periphery plugin here:

Untitled_new-ezgif.com-resize-video.mov

Copy link
Contributor

@ileitch ileitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank for this, looking forward to the plugin!

Sources/Shared/Configuration.swift Show resolved Hide resolved
@ileitch ileitch merged commit ef8d189 into peripheryapp:master May 19, 2024
6 checks passed
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.

2 participants