-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat: Add support for openEuler OS. #6475
base: main
Are you sure you want to change the base?
Conversation
This PR is stale because it has been labeled with inactivity. |
@knqyf263 Could you please run the tests first as you have time. Thank you very much! |
The main errors occurred because aquasecurity/trivy-db#397 has not been merged, which thus should be reviewed first. |
@DmitriyLewen I have updated this PR as we discussed in aquasecurity/trivy-db#397
|
@wjunLu left notes. Take a look. please. |
As you mentioned before, I have changed code, the result looks good |
The code has beed changed with the latest |
This PR is stale because it has been labeled with inactivity. |
Hi @DmitriyLewen @knqyf263! I'm looking forward to your reply. |
Hello @wjunLu We are focused on fixing bugs, fixing Your PR is adding a new OS for scanning. These changes require attention and careful review. Again, sorry for the wait and hope for your understanding |
I get it! |
This PR is stale because it has been labeled with inactivity. |
@DmitriyLewen @knqyf263 please take a look when you have time! Thank you! |
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
_ = dbtest.InitDB(t, tt.fixtures) | ||
defer db.Close() |
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.
What is db
here ? Where is it initialized ?
It looks like the result of dbtest.InitDB()
call but it is ignored ...
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.
Here, db
represents the package github.com/aquasecurity/trivy-db/pkg/db
.
Actually dbtest.InitDB()
is equal to db.Init()
which initializes a global *bolt.DB
object, and this object can be closed by db.Close()
.
So, db.Close()
is used to close the DB object initialized by dbtest.InitDB()
. The details can be seen from
Line 34 in 4202c4b
require.NoError(t, db.Init(dbDir)) |
Line 36 in 4202c4b
Init = db.Init |
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 for the explanation!
Description
What's openEuler?
openEuler is an open source, free Linux distribution platform. The platform provides an open community for global developers to build an open, diversified, and architecture-inclusive software ecosystem. openEuler is also an innovative platform that
encourages everyone to propose new ideas, explore new approaches, and practice new solutions.
Learn more, please visit https://www.openeuler.org/en/
To support openEuler
Now, openEuler has 2,345,659 users, 18,072 contributors and 1,501 organization members(see https://datastat.openeuler.org/en/overview). It is necessary to support such a very mature open source operating system.
Discussion
Our discussion is here #6400
Related issues
Related PRs
Remove this section if you don't have related PRs.
Self-test
I have tested the function to scan openEuler CVEs, see the following log
Checklist