Skip to content

Fix warnings in generated build-tool-plugin template code #8801

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

Merged

Conversation

plemarquand
Copy link
Contributor

@plemarquand plemarquand commented Jun 10, 2025

Migrate the template code generated by swift package init --type build-tool-plugin to use URL instead of Path, fixing compile warnings.

Fixes #8797

Migrate the template code generated by
`swift package init --type build-tool-plugin` to use URL instead of
Path, fixing compile warnings.

Issue: swiftlang#8797
@plemarquand plemarquand changed the title Fix warnings in generaged build-tool-plugin template Fix warnings in generated build-tool-plugin template Jun 10, 2025
@plemarquand plemarquand changed the title Fix warnings in generated build-tool-plugin template Fix warnings in generated build-tool-plugin template code Jun 10, 2025
@plemarquand
Copy link
Contributor Author

@swift-ci please test

@plemarquand
Copy link
Contributor Author

plemarquand commented Jun 10, 2025

Foundation is now everywhere one would use a build-tool-plugin, so it should be OK to use it in a template, yes?

@plemarquand
Copy link
Contributor Author

@swift-ci please test linux

@heckj
Copy link
Member

heckj commented Jun 16, 2025

After this gets applied, please merged #8829 to align the documentation to the updated content

@plemarquand plemarquand merged commit 3883eed into swiftlang:main Jun 17, 2025
6 checks passed
@plemarquand plemarquand deleted the init-build-tool-template-fix-warnings branch June 17, 2025 16:55
plemarquand pushed a commit that referenced this pull request Jun 17, 2025
Path based API was deprecated in Swift 6.0 - this maps to related work
to update it to a URL based mechanism, and matches the output from the
build-tool-plugin generated content.

resolves #8820 
Please merge after #8801 

### Motivation:

Related to the issue
#8820, and
matching the PR #8801, this updates the documentation to reflect
upcoming changes to the initialized template and updates the build tool
documentation to reflect the post-Swift 6.0 URL based API.

### Modifications:

Revised documentation to use template content from #8801 

### Result:

API documentation reflects URL based API, not Path based API
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.

swift package init --type build-tool-plugin creates templates full of warnings
3 participants