Skip to content

SA1019: grouper.IDAliases is deprecated #4431

@JamieMagee

Description

@JamieMagee

Describe the bug
Since #4405 was merged I am seeing the following lint errors

probes/hasOSVVulnerabilities/impl.go:63:28: SA1019: grouper.IDAliases is deprecated: this is now private and should not be used outside the scanner (staticcheck)
        aliasVulnerabilities := []grouper.IDAliases{}
                                  ^
probes/hasOSVVulnerabilities/impl.go:65:55: SA1019: grouper.IDAliases is deprecated: this is now private and should not be used outside the scanner (staticcheck)
                aliasVulnerabilities = append(aliasVulnerabilities, grouper.IDAliases(vuln))
                                                                    ^
probes/hasOSVVulnerabilities/impl.go:68:9: SA1019: grouper.Group is deprecated: this is now private and should not be used outside the scanner (staticcheck)
        IDs := grouper.Group(aliasVulnerabilities)
               ^
probes/hasOSVVulnerabilities/impl.go:24:2: SA1019: "github.com/google/osv-scanner/pkg/grouper" is deprecated: this is now private and should not be used outside the scanner (staticcheck)
        "github.com/google/osv-scanner/pkg/grouper"

Reproduction steps
Steps to reproduce the behavior:

  1. Checkout lastest main
  2. run make check-linter

Expected behavior
No errors

Additional context
The change was made upstream in google/osv-scanner#1309. And the package is set to be removed in google/osv-scanner#1376.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions