Dark Mode

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

Detect go binary packages#3894

Merged
AyanSinhaMahapatra merged 7 commits intodevelopfrom
detect-go-binary-packages
Oct 19, 2024
Merged

Detect go binary packages#3894
AyanSinhaMahapatra merged 7 commits intodevelopfrom
detect-go-binary-packages

Conversation

Copy link
Member

pombredanne commented Aug 15, 2024 *
edited by AyanSinhaMahapatra
Loading

This PR add support to scan Go binaries for their embedded packages. This is the ScanCode side.

The Go inspector PR is at

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled and links the original issue above
  • Tests pass -- look for a green checkbox a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

pombredanne mentioned this pull request Aug 15, 2024
pombredanne force-pushed the detect-go-binary-packages branch from 2217d75 to 434322f Compare September 5, 2024 18:46
Signed-off-by: Philippe Ombredanne
pombredanne force-pushed the detect-go-binary-packages branch from 434322f to 038eb03 Compare September 5, 2024 19:09
pombredanne added 3 commits September 5, 2024 23:34
Signed-off-by: Philippe Ombredanne
Signed-off-by: Philippe Ombredanne
Signed-off-by: Philippe Ombredanne
Copy link
Member Author

pombredanne commented Sep 6, 2024

@AyanSinhaMahapatra ready for your review

AyanSinhaMahapatra approved these changes Sep 6, 2024
Copy link
Member

AyanSinhaMahapatra left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @pombredanne
Can be merged with a minor nit resolved.

Copy link
Member

AyanSinhaMahapatra commented Sep 6, 2024 *
edited
Loading

I'm getting a:

INFO: pip is looking at multiple versions of scancode-toolkit[packages,testing] to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install scancode-toolkit[packages,testing]==32.2.1 because these package versions have conflicting dependencies.

The conflict is caused by:
scancode-toolkit[packages,testing] 32.2.1 depends on go-inspector>0.3.0; platform_system == "Linux" and extra == "packages"
The user requested (constraint) go-inspector==0.3.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

On running ./configure --clean && ./configure --dev not sure why this is not happening in the CI

Edit: seems to be a fluke, not happening anymore

Copy link
Member

AyanSinhaMahapatra commented Sep 6, 2024

I think https://github.com/aboutcode-org/go-inspector/blob/main/src/go_inspector/binary.py#L482 should be in packagedcode here? Or do we need #3761 to be merged before that?


Signed-off-by: Philippe Ombredanne

Co-authored-by: Ayan Sinha Mahapatra
Copy link
Member

AyanSinhaMahapatra commented Oct 19, 2024

Thanks @pombredanne , merging!

AyanSinhaMahapatra merged commit 9b3cf12 into develop Oct 19, 2024
AyanSinhaMahapatra deleted the detect-go-binary-packages branch October 19, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

AyanSinhaMahapatra AyanSinhaMahapatra approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants