-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
Casing causes 'More than one build script specified.' message #1690
Comments
@kharlamov Command line options are case sensitive in bash, so this is by design. |
I guess that part makes sense, the weird part to me was the side effect when the command is wrong |
@kharlamov That message is coming from Cake's parser so that we might want to look closer at. Would you mind specifying what OS you're running on, which Cake version and what the command looks like to get this error? |
Sure, I am using mac OS X 10.12.5 with the latest version of cake. |
@kharlamov can you supply the command line used that causes the error? |
I faced the same issue when running scripts cloned from this repo https://github.com/xamarin/AndroidSupportComponents. The running script is
Without |
When invoking Cake directly the syntax would be: |
Able to reproduce this on ./build.sh --target build Also tried Edit: Had to use
|
Can confirm this issue, reproduce on Mac OS |
This Worked for me |
I think part of the problem is the documentation is not clear, especially when running a Bash script as opposed to PowerShell. The doc page about running targets gives these examples:
If the tool is going to claim to be cross-platform like it does on the home page then the documentation should be cross-platform as well. |
The .NET Tool runner is now the recommended way to run Cake scripts on all platforms, the bootstrapping became a lot simpler (a handful of lines of code) and the documentation on the website has been updated. Closing this as resolved as part of the 1.0.0 milestone. Feel free to reopen if needed. |
🎉 This issue has been resolved in version v1.0.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
I switched from windows (ps1) to mac (sh), and noticed that using commands such as -
T
or-Target
on the shell script it causes the following issueMore than one build script specified
. After a while I noticed it was just a casing issue-t
worked just fine. Is there anyway to get some better notification or just to ignore casing for this?The text was updated successfully, but these errors were encountered: