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

Nested local packages that use #23

Closed
LucasVanDongen opened this issue Aug 19, 2024 · 1 comment
Closed

Nested local packages that use #23

LucasVanDongen opened this issue Aug 19, 2024 · 1 comment
Labels
wontfix This will not be worked on

Comments

@LucasVanDongen
Copy link

I'm using the plug-in as follows:

let swiftLintPackage = Package.Dependency.package(
    url: "https://github.com/SimplyDanny/SwiftLintPlugins",
    from: "0.0.0" // To prevent version conflicts I let the main app pin the version
)
let swiftLintPlugin = Target.PluginUsage.plugin(
    name: "SwiftLintBuildToolPlugin",
    package: "SwiftLintPlugins"
)

Works like a charm 👌

However I did exactly the same in my Analytics package, that I'm consuming from this package, and now they are clashing:

multiple products named 'SwiftLintBuildToolPlugin' in: 'swiftlint' (from 'https://github.com/realm/SwiftLint'), 'swiftlintplugins' (from 'https://github.com/SimplyDanny/SwiftLintPlugins')

For regular .product dependencies we can use moduleAliases, but that's not possible for plug-ins.

How can I use the plug-in in nested packages?

Copy link

stale bot commented Sep 8, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 8, 2024
@stale stale bot closed this as completed Sep 15, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant