Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stricter checks on libs/cores arguments#431

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
cmaglie wants to merge3 commits intomasterfromcmaglie/args-parser

Conversation

@cmaglie
Copy link
Member

@cmagliecmaglie commentedSep 27, 2019
edited
Loading

Previouslyglobals.ParseReferenceArgs was used to parse both core reference and library reference, but this doesn't work well because:

MyLib@1.0.0 is a valid library reference but not a valid core reference (because it's missing the architecture part likearduino:avr@1.0.0.

This PR adds another functionglobal.ParseLibraryReferenceArgs that also provides a better error messages for the reason why the parameters are rejected:

  • invalid empty library name (ex:@2.3.4)
  • invalid empty library version (ex:MyLib@)

and for cores:

  • invalid empry core argument
  • invalid empty core reference (ex:@1.2.3)
  • invalid empty core version (ex:arduino:avr@)
  • invalid empty core name (ex::avr@1.2.3)
  • invalid empty core architecture (exarduino:@1.2.3)

@cmagliecmaglie requested a review frommasciSeptember 27, 2019 11:12
@cmagliecmaglie self-assigned thisOct 2, 2019
@cmaglie
Copy link
MemberAuthor

Already merged as part of#351

@cmagliecmaglie deleted the cmaglie/args-parser branchFebruary 28, 2020 16:20
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mascimasciAwaiting requested review from masci

Assignees

@cmagliecmaglie

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@cmaglie

[8]ページ先頭

©2009-2025 Movatter.jp