Skip to content

Fix library verification when installing from git repo or zip file #1466

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 2 commits into from
Sep 24, 2021

Conversation

silvanocerza
Copy link
Contributor

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?

Solves a bug.

  • What is the current behavior?

When installing a library from a git repository or from a zip file the verification step strictly requires the library to contain an header file with the same name as the repository URL or as the root directory contained in the zip file.

This verification is too strict and doesn't respect the official library specifications, so often valid libraries are rejected.

  • What is the new behavior?

The verification step is now less strict and reflect the library specification closely.

Nope.

  • Other information:

Fix #1306.


See how to contribute

@silvanocerza silvanocerza added type: imperfection Perceived defect in any part of project topic: CLI Related to the command line interface topic: gRPC Related to the gRPC interface labels Sep 23, 2021
@silvanocerza silvanocerza requested a review from a team September 23, 2021 15:05
@silvanocerza silvanocerza self-assigned this Sep 23, 2021
@silvanocerza silvanocerza force-pushed the scerza/fix-library-verification branch from 0aa88da to 5e37966 Compare September 23, 2021 15:12
@silvanocerza silvanocerza force-pushed the scerza/fix-library-verification branch from 5e37966 to 0407bb3 Compare September 23, 2021 15:45
@silvanocerza silvanocerza force-pushed the scerza/fix-library-verification branch from 0407bb3 to 73472c0 Compare September 23, 2021 15:52
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.

Thanks Silvano!

@silvanocerza silvanocerza merged commit f03580c into master Sep 24, 2021
@silvanocerza silvanocerza deleted the scerza/fix-library-verification branch September 24, 2021 08:41
silvanocerza added a commit that referenced this pull request Sep 24, 2021
…1466)

* Fix library verification when installing from git repo or zip file

* Enhance code comments and unit tests

Co-authored-by: per1234 <[email protected]>

Co-authored-by: per1234 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: CLI Related to the command line interface topic: gRPC Related to the gRPC interface type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using --git-url fails to install library due to repository and header name mismatch
2 participants