-
-
Notifications
You must be signed in to change notification settings - Fork 275
Fix istio #395
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
Fix istio #395
Conversation
|
What are you fixing ? |
|
Regarding #394 , you should try clearing importer.last_run . The way |
|
I actually recreated the entire database to verify that it is not the case. Further, after inspecting I got that the |
|
@Hritik14 I see, missed it. The changes package url calls and the
Just fix the issue by changing https://github.com/nexB/vulnerablecode/blob/3d66b4e82ee31422ab907d3388f739b768ffd2ac/vulnerabilities/importers/istio.py#L50 to files = self._added_files.union(self._updated_files) |
|
Btw do squash these and rebase |
Are you sure we should union them both ? I'm asking because there exists two explicit functions The comment in Also, I've made the brach even with main. I'd really like you to squash the commits via the PR method as you did earlier. |
|
@Hritik14 re |
|
@Hritik14 re squashing . That works too. Ideally you want to sync your main branch with the one here and rebase your feature branch to your main branch. That would avoid the merge commit. The problem with me squashing the commits is, loss in context. Git history should represent proper evolution of the codebase. I'll squash this PR, since the fix is trivial. |
|
I had to force push in order to rebase. Please check. |
So should we completely remove the added and have only updated in the DataSource api ? |
Eventually yes, but that's not the priority now. |
1. The package url call should have order similar to it's string repr (type comes first). 2. Upper casing a function variable is just misleading. Upper case means it's some global dataish thing (is_release) 3. Remove added_files function Reference: aboutcode-org#395 (comment) Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
|
@sbs2001 Done |
As all the files in istio git repo are added and not updated, it is mandatory to handle `self._added_files` properly which was ignored earlier. This fixes aboutcode-org#394 Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
type was used where name had been and name where type should be. Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
type was used where name had been and name where type should be. Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
1. The package url call should have order similar to it's string repr (type comes first). 2. Upper casing a function variable is just misleading. Upper case means it's some global dataish thing (is_release) 3. Remove added_files function Reference: aboutcode-org#395 (comment) Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
|
@sbs2001 rebased |
Fixes #394

Current status