Skip to content
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

Fix lib install with git url #1143

Merged
merged 3 commits into from
Jan 20, 2021
Merged

Fix lib install with git url #1143

merged 3 commits into from
Jan 20, 2021

Conversation

silvanocerza
Copy link
Contributor

@silvanocerza silvanocerza commented Jan 18, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?

Fixes a bug with an existing command.

  • What is the current behavior?

Calling arduino-cli lib install --git-url . is executed successfully but the library is installed in the wrong folder, to be precise it's installed directly inside the <sketch_book_dir>/libraries folder, so the whole content of the library ends there.

  • What is the new behavior?

Calling arduino-cli lib install --git-url . now correctly deduces the library name from the given path and installs it in the <sketch_book_dir>/libraries/<lib_name> folder.

Nope.

  • Other information:

Fixes #1120


See how to contribute

test/test_lib.py Outdated Show resolved Hide resolved
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

It would be nice to have a test for a relative path to cover all the use cases.

Copy link

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

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

tested and confirmed working

@silvanocerza silvanocerza merged commit ee076dd into master Jan 20, 2021
@silvanocerza silvanocerza deleted the scerza/lib-install-git branch January 20, 2021 10:49
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.

lib install --git-url with a local path does not work as expected
3 participants