-
Notifications
You must be signed in to change notification settings - Fork 173
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
Do not error on rocky linux referenced deps #1473
Conversation
@csasarak does your work on Core affect this ticket at all? |
I don't think it does directly because in this case we're validating the OS against a list internal to the CLI. We actually do support Rocky Linux in our backend so I think it's OK to merge this PR. However, the future "correct" solution I think is to either not validate or fetch a list of valid distributions at some point during analysis and validate against that. In the future if we're able to more easily add support for other Linux distributions we don't want to be forced to coordinate new CLI releases with the addition of that support. So I think I'd also be good with a version of this that either warns or doesn't do the check at all. @spatten If you want to we can open up a discussion internally but I think the above is what we ought to do. |
I guess one possible reason to do the validation here is to potentially lessen the load on Core. I think if Core can't handle that we should figure out a way to fix it rather than maintaining this logic IMO. |
I agree with that. This PR is still worth merging, but in the future we should skip validation or move the validation to Core |
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.
This looks good to me! I left a comment about formatting of the Changelog, but nothing blocking at all
Changelog.md
Outdated
@@ -1,3 +1,7 @@ | |||
# Unreleased | |||
|
|||
- fossa-deps: Fixed an issue where Rocky linux deps could skip the fossa-deps file during analysis |
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.
Can you add a link to the PR? Also, is that an accurate description of what we're fixing. Based on my reading, it's something like "Fixed an issue where Rockly Linux deps were not supported in the fossa-deps file"
- fossa-deps: Fixed an issue where Rocky linux deps could skip the fossa-deps file during analysis | |
- fossa-deps: Fixed an issue where Rocky Linux deps were not supported in the fossa-deps file ([#1473](https://github.com/fossas/fossa-cli/pull/1473)) |
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.
Also, # Unreleased
should go below # FOSSA CLI Changelog
and be a level 2 header: ## Unreleased
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.
Thank you! That's a better description!
I also updated the PR template to make this more intuitive. It originally said "# Unreleased
section at the top," but my markdown senses were tingling.
Overview
If using
rocky
as an os in the fossa-deps.yml, fossa will fail to read the fossa-deps file with the following error:This aims to fix that, and allow the use of rocky for rpm-generic deps. It also updates the fossa-deps schema.
Acceptance criteria
FOSSA CLI analysis does not fail when using
rocky
as an os value.Testing plan
I created a fossa-deps.yml with the follwing:
This will fail on fossa-cli versions outside of this branch.
I tested by downloading the built MacOS arm build from this run:
My scan was successful, and the dependency was included in my FOSSA project.
Risks
I looked at this very quickly; I may have missed a spot where I need to update the OS, or provide additional info.
References
N/A
Checklist
docs/
.docs/README.ms
and gave consideration to how discoverable or not my documentation is.Changelog.md
. If this PR did not mark a release, I added my changes into an# Unreleased
section at the top..fossa.yml
orfossa-deps.{json.yml}
, I updateddocs/references/files/*.schema.json
AND I have updated example files used byfossa init
command. You may also need to update these if you have added/removed new dependency type (e.g.pip
) or analysis target type (e.g.poetry
).docs/references/subcommands/<subcommand>.md
.