Skip to content

Duplicate package output when scanning alpine images #881

@JamieMagee

Description

@JamieMagee

Describe the bug
When scanning alpine based images I see duplicate packages in the output, one of which has an empty version.

To Reproduce
Steps to reproduce the behavior:

  1. tern -q --driver fuse report -f json -i node:14.15.3-alpine3.12
  2. Outputs duplicate packages, one of which has an empty version

Expected behavior
A single instance of each package, with a version listed

Environment you are running Tern on
Enter all that apply

  • Output of 'tern --version'
    • 2.3.0
  • Operating System
    • Windows 10 running Docker in WSL2
  • Vagrant file
  • Container OS
  • Python version (3.6 or higher)
  • Cloud environment (AWS, Azure, GCP)

Please attach files if they exist
JSON output: https://gist.github.com/JamieMagee/c9423ee6bbc9adb7334e3f1ff18f8252

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething went wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions