-
Couldn't load subscription status.
- Fork 727
feat: add Elixir and Erlang (Hex package) support #1073
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
Conversation
|
Thanks for another great contribution @cpendery! I do think having |
With splitting the languages into Elixir and Erlang, when we see a purl for the Hex |
Hmm, can we encode the language as a parameter to the package url when syft creates it? @spiffcs, any thoughts? |
The purl specification doesn't have a |
|
It could be useful for Conan (C/C++) and Cocoapods (Objective-C/Swift) since both support dual languages like Hex. I made a PR below just as a starting point for the discussion in the |
After forming the PURL we have a decoding function called This would lead to the issue @cpendery brings up where we don't have enough information at that point to assign a language. If his PR is accepted then we can make the split in the specification itself and no longer encounter this issue. Because of this design choice, catalogers are loosely bound to support on the PURL side. |
|
@cpendery this looks really good. I'll wait on merging or updating in anyway until we hear back on the PR you made for the purl-spec. |
|
TODO: update cataloger to new generic cataloger pattern |
|
I think we can leave language as blank / unknown in these circumstances -- the cataloger is more valuable than resolving the language from the pURL IMHO. I can help rebase what is here and update the patterns some based on the drift. |
Signed-off-by: cpendery <[email protected]>
Signed-off-by: cpendery <[email protected]>
Signed-off-by: cpendery <[email protected]>
Signed-off-by: cpendery <[email protected]>
Signed-off-by: cpendery <[email protected]>
Signed-off-by: cpendery <[email protected]>
|
The main changes I made were:
I'll push shortly, and I think this will be good to go! |
Signed-off-by: Alex Goodman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work and patience on this!
* feat: initial commit providing mix support Signed-off-by: cpendery <[email protected]> * feat: add rebar parser Signed-off-by: cpendery <[email protected]> * fix: add beam/hex everywhere else required for Syft runtime Signed-off-by: cpendery <[email protected]> * style: fix lints Signed-off-by: cpendery <[email protected]> * ci: fix failing tests Signed-off-by: cpendery <[email protected]> * docs: update with new supported languages Signed-off-by: cpendery <[email protected]> * chore: update elixir/erlang catalogers to generic cataloger Signed-off-by: Alex Goodman <[email protected]> Signed-off-by: cpendery <[email protected]> Signed-off-by: Alex Goodman <[email protected]> Co-authored-by: Alex Goodman <[email protected]>
π Description
Adds support for parse
rebar.lockandmix.lockfiles to add catalogging support for Elixir & Erlang projects that use the Hex compatible package managers.Closes: #1071
Closes: #774