-
-
Notifications
You must be signed in to change notification settings - Fork 114
Remove composite paths support from foldersFlag #277
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
Conversation
✅ Build completed. ⬇️ Build URL: ℹ️ To test this build:
|
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.
👍
arduino-builder/main.go
Outdated
@@ -97,17 +97,8 @@ func (h *foldersFlag) String() string { | |||
} | |||
|
|||
func (h *foldersFlag) Set(csv string) error { |
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.
The csv
variable should be renamed to folder
.
arduino-builder/main.go
Outdated
*h = append(*h, value) | ||
} | ||
csv = strings.TrimSpace(csv) | ||
*h = append(*h, csv) |
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.
Should we also remove the TrimSpace here? With it, you cannot have use directory name ending or starting in a space (which is unlikely to be useful, but why not just allow any filename?). A shell will trim spaces anyway, unless someone takes the effort to escape them (in which case we shouldn't trim them again)?
@matthijskooijman you are right about the rename, also the second one looks like an artificial limitation but we have to make sure that removing the trim brings no side effect |
Fixes arduino#276 The only supported way to append multiple hardware/tools folders becomes specifying the same flag multiple times (which is the de-facto standard, since the Java IDE only uses this format)
d66e34f
to
e94b3ee
Compare
❌ Build failed. |
Fixes #276
The only supported way to append multiple hardware/tools folders becomes specifying the same flag multiple times (which is the de-facto standard, since the Java IDE only uses this format)
@matthijskooijman