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

Add arguments to Plugins #7604

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

Conversation

BarredEwe
Copy link

Adding arguments for running Plugins

Motivation:

Now, in order to pass any parameters to plugins, it is necessary to use configuration files and read them from Plugin or create several plugins with predefined parameters. This is very inconvenient and time-consuming. This was mentioned during plugin development: https://github.com/apple/swift-evolution/blob/main/proposals/0303-swiftpm-extensible-build-tools.md#type-safe-options , but was not implemented. I propose to add a simple passing of arguments as an array of strings

Modifications:

// TODO
[Describe the modifications you've done.]

Result:

// TODO
[After your change, what will change.]

@MaxDesiatov
Copy link
Contributor

MaxDesiatov commented May 29, 2024

This would need a corresponding pitch and an evolution proposal to be reviewed and accepted before it could be considered for merging, as it includes changes to the PackageDescription API.

@MaxDesiatov MaxDesiatov added public API Changes to the public API of SwiftPM package manifests changes to package manifest APIs and removed public API Changes to the public API of SwiftPM labels May 29, 2024
@BarredEwe
Copy link
Author

This would need a corresponding pitch and an evolution proposal to be reviewed and accepted before it could be considered for merging, as it includes changes to the PackageDescription API.

I see, then I'll go make a discussion and write a proposal

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

Successfully merging this pull request may close these issues.

2 participants