Skip to content

Conversation

@etcwilde
Copy link
Member

@etcwilde etcwilde commented Jul 31, 2025

The Swift driver uses the location of the driver to search for other binaries including the swift-frontend, legacy driver, etc... Dropping the filepath means that we lose this information and search from the current working directory instead of where the driver exists, which then results in the driver failing.

This broke the FreeBSD job: error: unknown or missing subcommand 'swiftc-legacy-driver'

The Swift driver uses the location of the driver to search for other
binaries including the swift-frontend, legacy driver, etc...
Dropping the filepath means that we lose this information and search
from the current working directory instead of where the driver exists,
which then results in the driver failing.
@etcwilde
Copy link
Member Author

@swift-ci please test

Copy link
Member

@kateinoigakukun kateinoigakukun left a comment

Choose a reason for hiding this comment

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

You're right, returning only the last path component was completely my mistake. Thanks for following up 🙏

@etcwilde etcwilde merged commit 7ffb21c into swiftlang:main Aug 1, 2025
16 checks passed
chloe-yeo pushed a commit to chloe-yeo/swift-foundation that referenced this pull request Aug 1, 2025
The Swift driver uses the location of the driver to search for other
binaries including the swift-frontend, legacy driver, etc...
Dropping the filepath means that we lose this information and search
from the current working directory instead of where the driver exists,
which then results in the driver failing.
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.

3 participants