-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Plugin/Java: quote path and provide useful error message #2006
Conversation
8029e7f
to
8bf0630
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these files related to the PR?:
- test/plugins/xterm.plugin.bats
- test/run
Yes, I can't run BATS at all without fixing unquoted paths, so I can't run the test suite before submitting without those two fixes. I suppose I could pull them from this PR if you prefer |
8bf0630
to
950c33f
Compare
Sounds like you want a separate PR to address running bats in environments that require quoted paths ... |
I did. It's one of my two dozen open PRs. I'll pull those two commits from this PR if you prefer |
Can you reference it? I took a quick look at open PRs and didn't recognize it (by name) ... We can consider this a draft and get that other PR merged at which point it should disappear from this PR ... |
Provides an error message if no file is specified.
950c33f
to
f03a898
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved !
Description
Quote the path to the JAR file in
jar_manifest()
, and provide a meaningful error message if no path is provided.Motivation and Context
Just cleaning up; this function would fail for any files with spaces in the path. Alsö,
shfmt
.Note: this branch alsö includes a fix to path quoting in
test/run
; otherwise tests wouldn't be able to run at all when$BASH_IT
has a space in it.How Has This Been Tested?
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.