Skip to content

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

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

facchinm
Copy link
Member

@facchinm facchinm commented Jun 5, 2018

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

@ArduinoBot
Copy link
Contributor

✅ Build completed.

⬇️ Build URL: http://downloads.arduino.cc/PR/arduino-builder/arduino-builder-277.zip

ℹ️ To test this build:

  1. Replace arduino-builder binary (you can find it where you installed the IDE) with the provided one

Copy link
Member

@cmaglie cmaglie left a comment

Choose a reason for hiding this comment

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

👍

@@ -97,17 +97,8 @@ func (h *foldersFlag) String() string {
}

func (h *foldersFlag) Set(csv string) error {
Copy link
Collaborator

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.

*h = append(*h, value)
}
csv = strings.TrimSpace(csv)
*h = append(*h, csv)
Copy link
Collaborator

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)?

@facchinm
Copy link
Member Author

facchinm commented Jun 5, 2018

@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)
@ArduinoBot
Copy link
Contributor

❌ Build failed.

@facchinm facchinm dismissed matthijskooijman’s stale review June 14, 2018 07:32

Suggested changes applied :)

@facchinm facchinm added this to the next milestone Sep 20, 2018
@facchinm facchinm merged commit bbf7051 into arduino:master Oct 16, 2018
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.

4 participants