-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Feature/transitive require #678
Conversation
…meter gitBranch for server 3. Fix Bug with set gitURL in server Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
This reverts commit 9ef6d8c. Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
a0b612f
to
7f00537
Compare
package.json
Outdated
@@ -63,6 +63,7 @@ | |||
"cheerio": "^1.0.0-rc.12", | |||
"edn-data": "^1.0.0", | |||
"find-up": "^6.3.0", | |||
"git-url-parse": "^13.1.1", |
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.
Let's avoid this dependency altogether and remove the console.log
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.
which console.log are we talking about?
utils.test.js
Outdated
@@ -1703,8 +1703,8 @@ test("parsePkgLock v3", async () => { | |||
projectName: "cdxgen" | |||
}); | |||
deps = parsedList.pkgList; | |||
expect(deps.length).toEqual(1204); | |||
expect(parsedList.dependenciesList.length).toEqual(1204); | |||
expect(deps.length).toEqual(1210); |
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.
Why is the count going up? Could you check if we are creating duplicates?
Thank you. Could you kindly sign the commit by following the below instructions? https://github.com/CycloneDX/cdxgen/pull/678/checks?check_run_id=18159669929 |
…meter gitBranch for server 3. Fix Bug with set gitURL in server Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
This reverts commit 9ef6d8c. Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
…ster/cdxgen into feature/transitive_require
Signed-off-by: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com>
I had problems with commits, in order not to clog up the repository, I will close this PR and open a new one taking into account the review |
#681 - new PR |
if (impPkgs.includes(alias) || all_includes.length) { | ||
let importedModules = new Set(); | ||
pkg.scope = "required"; | ||
for (const subevidence of all_includes) { |
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.
Wondering if we there is a way to avoid this nested loop. For large boms with 1000s of components this might be slow. wdyt?
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.
To shorten the execution time, I think it is possible to make a condition under which, if we do not find direct imports in required dependencies, then only then try to look for sub-dependencies.
But I also think that displaying in occurrences all imports (even those where there were direct ones), and not just direct ones, can be useful.
Server:
JS analysis --required-only