Skip to content

completion-tool list-executables should list executable names #8053

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 Oct 17, 2024

Update the completion tool so it prints the list of executable names instead of target names. The executable products names determines the name fo the actual binary written to disk, which is what you'd want from a completion-tool.

That patch also adds a few tests for completion-tool around this specific behaviour. There weren't existing tests for the completion-tool. More tests to follow in a subsequent PR focusing on testing this area specifically.

Fixes #8033

… instead of names of executables

Update the completion tool so it prints the list of executable names
instead of target names. The executable products names determines the
name fo the actual binary written to disk, which is what you'd want from
a completion-tool.

That patch also adds a few tests for completion-tool around this
specific behaviour. There weren't existing tests for the
completion-tool. More tests to follow in a subsequent PR focusing on
testing this area specifically.

Fixes swiftlang#8033
@plemarquand plemarquand changed the title swift package completion-tool list-executables lists names of targets… swift package completion-tool list-executables lists names of targets instead of names of executables Oct 17, 2024
@MaxDesiatov MaxDesiatov changed the title swift package completion-tool list-executables lists names of targets instead of names of executables swift package completion-tool list-executables should list names of executables Oct 17, 2024
@MaxDesiatov MaxDesiatov changed the title swift package completion-tool list-executables should list names of executables swift package completion-tool list-executables should list executable names Oct 17, 2024
@MaxDesiatov MaxDesiatov changed the title swift package completion-tool list-executables should list executable names completion-tool list-executables should list executable names Oct 17, 2024
@plemarquand plemarquand force-pushed the list-executables-products-not-targets branch from 3cdfd64 to d380ff9 Compare October 17, 2024 16:33
@plemarquand
Copy link
Contributor Author

@swift-ci test

@plemarquand plemarquand merged commit 5efd210 into swiftlang:main Oct 21, 2024
5 checks passed
lawyoum added a commit to lawyoum/swift-package-manager that referenced this pull request Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

swift package completion-tool list-executables lists names of targets instead of names of executables
2 participants