We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: b562053905e304d47bcc8b64d7e9d829
Issue Description:
Recent Swift package manager doesn't like projects with dashes.
Steps To Reproduce:
1. (set -e; rm -rf foo-bar; mkdir foo-bar; cd foo-bar; swift package init --type executable && swift test)
Results:
swift test couldn't find `foo_bar` executable, whereas `foo-bar` executable got built.
The text was updated successfully, but these errors were encountered:
Comment by Jhonny Bill Mena (JIRA)
I "fixed" by just changing in writeExecutableTestsFile function
writeExecutableTestsFile
let fooBinary = productsDirectory.appendingPathComponent("\(moduleName)")
to
let fooBinary = productsDirectory.appendingPathComponent("\(pkgname)")
All tests passed. I don't know if this change brings further consequences, can anyone tell?
Sorry, something went wrong.
Yep, that is the correct fix. Please create a PR with a test case.
#1697
No branches or pull requests
Additional Detail from JIRA
md5: b562053905e304d47bcc8b64d7e9d829
Issue Description:
Recent Swift package manager doesn't like projects with dashes.
Steps To Reproduce:
1. (set -e; rm -rf foo-bar; mkdir foo-bar; cd foo-bar; swift package init --type executable && swift test)
Results:
swift test couldn't find `foo_bar` executable, whereas `foo-bar` executable got built.
The text was updated successfully, but these errors were encountered: