mirror of
https://github.com/anchore/syft.git
synced 2026-04-05 22:30:35 +02:00
redefine unknown dependency completeness enum
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
b64213109a
commit
02b7c959c7
@ -18,7 +18,7 @@ func newELFPackage(metadata elfBinaryPackageNotes, locations file.LocationSet) p
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
// though we can look for shared libs, we cannot see static dependencies nor dynamic dependencies using dlopen.
|
// though we can look for shared libs, we cannot see static dependencies nor dynamic dependencies using dlopen.
|
||||||
// this means that, even in cases where the dep info is actually complete, we can't programmatically determine that.
|
// this means that, even in cases where the dep info is actually complete, we can't programmatically determine that.
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: metadata.ELFBinaryPackageNoteJSONPayload,
|
Metadata: metadata.ELFBinaryPackageNoteJSONPayload,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ func Test_ELF_Package_Cataloger(t *testing.T) {
|
|||||||
),
|
),
|
||||||
|
|
||||||
Type: pkg.BinaryPkg,
|
Type: pkg.BinaryPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
||||||
Type: "testfixture",
|
Type: "testfixture",
|
||||||
Vendor: "syft",
|
Vendor: "syft",
|
||||||
@ -58,7 +58,7 @@ func Test_ELF_Package_Cataloger(t *testing.T) {
|
|||||||
pkg.License{Value: "MIT", SPDXExpression: "MIT", Type: "declared"},
|
pkg.License{Value: "MIT", SPDXExpression: "MIT", Type: "declared"},
|
||||||
),
|
),
|
||||||
Type: pkg.BinaryPkg,
|
Type: pkg.BinaryPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
||||||
Type: "testfixture",
|
Type: "testfixture",
|
||||||
Vendor: "syft",
|
Vendor: "syft",
|
||||||
@ -84,7 +84,7 @@ func Test_ELF_Package_Cataloger(t *testing.T) {
|
|||||||
),
|
),
|
||||||
Licenses: pkg.NewLicenseSet(),
|
Licenses: pkg.NewLicenseSet(),
|
||||||
Type: pkg.RpmPkg,
|
Type: pkg.RpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
||||||
Type: "rpm",
|
Type: "rpm",
|
||||||
Architecture: "x86_64",
|
Architecture: "x86_64",
|
||||||
@ -107,7 +107,7 @@ func Test_ELF_Package_Cataloger(t *testing.T) {
|
|||||||
),
|
),
|
||||||
Licenses: pkg.NewLicenseSet(),
|
Licenses: pkg.NewLicenseSet(),
|
||||||
Type: pkg.RpmPkg,
|
Type: pkg.RpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
||||||
Type: "rpm",
|
Type: "rpm",
|
||||||
Architecture: "arm",
|
Architecture: "arm",
|
||||||
|
|||||||
@ -158,7 +158,7 @@ func Test_newELFPackage(t *testing.T) {
|
|||||||
Version: "0.01",
|
Version: "0.01",
|
||||||
Type: "binary",
|
Type: "binary",
|
||||||
PURL: "pkg:generic/syftsys/syfttestfixture@0.01",
|
PURL: "pkg:generic/syftsys/syfttestfixture@0.01",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
Metadata: pkg.ELFBinaryPackageNoteJSONPayload{
|
||||||
Type: "binary",
|
Type: "binary",
|
||||||
System: "syftsys",
|
System: "syftsys",
|
||||||
|
|||||||
@ -67,8 +67,8 @@ func splitConanRef(ref string) *conanRef {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newConanfilePackage(m pkg.ConanfileEntry, locations ...file.Location) *pkg.Package {
|
func newConanfilePackage(m pkg.ConanfileEntry, locations ...file.Location) *pkg.Package {
|
||||||
// though a conanfile is a listing of direct dependencies, we are not capturing these today, so are forced to answer incomplete
|
// though a conanfile is a listing of direct dependencies, we are not capturing these today, so are forced to answer unknown
|
||||||
return newConanPackage(m.Ref, m, pkg.IncompleteDependencies, locations...)
|
return newConanPackage(m.Ref, m, pkg.UnknownDependencyCompleteness, locations...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func newConanlockV1Package(m pkg.ConanV1LockEntry, locations ...file.Location) *pkg.Package {
|
func newConanlockV1Package(m pkg.ConanV1LockEntry, locations ...file.Location) *pkg.Package {
|
||||||
|
|||||||
@ -20,7 +20,7 @@ func TestParseConanfile(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.CPP,
|
Language: pkg.CPP,
|
||||||
Type: pkg.ConanPkg,
|
Type: pkg.ConanPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ConanfileEntry{
|
Metadata: pkg.ConanfileEntry{
|
||||||
Ref: "catch2/2.13.8",
|
Ref: "catch2/2.13.8",
|
||||||
},
|
},
|
||||||
@ -32,7 +32,7 @@ func TestParseConanfile(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.CPP,
|
Language: pkg.CPP,
|
||||||
Type: pkg.ConanPkg,
|
Type: pkg.ConanPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ConanfileEntry{
|
Metadata: pkg.ConanfileEntry{
|
||||||
Ref: "docopt.cpp/0.6.3",
|
Ref: "docopt.cpp/0.6.3",
|
||||||
},
|
},
|
||||||
@ -44,7 +44,7 @@ func TestParseConanfile(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.CPP,
|
Language: pkg.CPP,
|
||||||
Type: pkg.ConanPkg,
|
Type: pkg.ConanPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ConanfileEntry{
|
Metadata: pkg.ConanfileEntry{
|
||||||
Ref: "fmt/8.1.1",
|
Ref: "fmt/8.1.1",
|
||||||
},
|
},
|
||||||
@ -56,7 +56,7 @@ func TestParseConanfile(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.CPP,
|
Language: pkg.CPP,
|
||||||
Type: pkg.ConanPkg,
|
Type: pkg.ConanPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ConanfileEntry{
|
Metadata: pkg.ConanfileEntry{
|
||||||
Ref: "spdlog/1.9.2@my_user/my_channel#1234567%%987654",
|
Ref: "spdlog/1.9.2@my_user/my_channel#1234567%%987654",
|
||||||
},
|
},
|
||||||
@ -68,7 +68,7 @@ func TestParseConanfile(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.CPP,
|
Language: pkg.CPP,
|
||||||
Type: pkg.ConanPkg,
|
Type: pkg.ConanPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ConanfileEntry{
|
Metadata: pkg.ConanfileEntry{
|
||||||
Ref: "sdl/2.0.20#1234567%%987654",
|
Ref: "sdl/2.0.20#1234567%%987654",
|
||||||
},
|
},
|
||||||
@ -80,7 +80,7 @@ func TestParseConanfile(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.CPP,
|
Language: pkg.CPP,
|
||||||
Type: pkg.ConanPkg,
|
Type: pkg.ConanPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ConanfileEntry{
|
Metadata: pkg.ConanfileEntry{
|
||||||
Ref: "fltk/1.3.8@my_user/my_channel",
|
Ref: "fltk/1.3.8@my_user/my_channel",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -21,8 +21,8 @@ func newPubspecLockPackage(name string, raw pubspecLockPackage, locations ...fil
|
|||||||
PURL: packageURL(metadata),
|
PURL: packageURL(metadata),
|
||||||
Language: pkg.Dart,
|
Language: pkg.Dart,
|
||||||
Type: pkg.DartPubPkg,
|
Type: pkg.DartPubPkg,
|
||||||
// since we capture no dependencies today we know that the dep info is incomplete
|
// since we capture no dependencies today we know that the dep info is unknown
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: metadata,
|
Metadata: metadata,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ func TestParsePubspecLock(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.Dart,
|
Language: pkg.Dart,
|
||||||
Type: pkg.DartPubPkg,
|
Type: pkg.DartPubPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DartPubspecLockEntry{
|
Metadata: pkg.DartPubspecLockEntry{
|
||||||
Name: "ale",
|
Name: "ale",
|
||||||
Version: "3.3.0",
|
Version: "3.3.0",
|
||||||
@ -34,7 +34,7 @@ func TestParsePubspecLock(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.Dart,
|
Language: pkg.Dart,
|
||||||
Type: pkg.DartPubPkg,
|
Type: pkg.DartPubPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DartPubspecLockEntry{
|
Metadata: pkg.DartPubspecLockEntry{
|
||||||
Name: "analyzer",
|
Name: "analyzer",
|
||||||
Version: "0.40.7",
|
Version: "0.40.7",
|
||||||
@ -47,7 +47,7 @@ func TestParsePubspecLock(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.Dart,
|
Language: pkg.Dart,
|
||||||
Type: pkg.DartPubPkg,
|
Type: pkg.DartPubPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DartPubspecLockEntry{
|
Metadata: pkg.DartPubspecLockEntry{
|
||||||
Name: "ansicolor",
|
Name: "ansicolor",
|
||||||
Version: "1.1.1",
|
Version: "1.1.1",
|
||||||
@ -60,7 +60,7 @@ func TestParsePubspecLock(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.Dart,
|
Language: pkg.Dart,
|
||||||
Type: pkg.DartPubPkg,
|
Type: pkg.DartPubPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DartPubspecLockEntry{
|
Metadata: pkg.DartPubspecLockEntry{
|
||||||
Name: "archive",
|
Name: "archive",
|
||||||
Version: "2.0.13",
|
Version: "2.0.13",
|
||||||
@ -73,7 +73,7 @@ func TestParsePubspecLock(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.Dart,
|
Language: pkg.Dart,
|
||||||
Type: pkg.DartPubPkg,
|
Type: pkg.DartPubPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DartPubspecLockEntry{
|
Metadata: pkg.DartPubspecLockEntry{
|
||||||
Name: "args",
|
Name: "args",
|
||||||
Version: "1.6.0",
|
Version: "1.6.0",
|
||||||
@ -86,7 +86,7 @@ func TestParsePubspecLock(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.Dart,
|
Language: pkg.Dart,
|
||||||
Type: pkg.DartPubPkg,
|
Type: pkg.DartPubPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DartPubspecLockEntry{
|
Metadata: pkg.DartPubspecLockEntry{
|
||||||
Name: "flutter",
|
Name: "flutter",
|
||||||
Version: "0.0.0",
|
Version: "0.0.0",
|
||||||
@ -99,7 +99,7 @@ func TestParsePubspecLock(t *testing.T) {
|
|||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
Language: pkg.Dart,
|
Language: pkg.Dart,
|
||||||
Type: pkg.DartPubPkg,
|
Type: pkg.DartPubPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DartPubspecLockEntry{
|
Metadata: pkg.DartPubspecLockEntry{
|
||||||
Name: "key_binder",
|
Name: "key_binder",
|
||||||
Version: "1.11.20",
|
Version: "1.11.20",
|
||||||
|
|||||||
@ -81,8 +81,8 @@ func buildDotNetPEPackage(versionResources map[string]string, f file.LocationRea
|
|||||||
Type: pkg.DotnetPkg,
|
Type: pkg.DotnetPkg,
|
||||||
Language: pkg.Dotnet,
|
Language: pkg.Dotnet,
|
||||||
PURL: portableExecutablePackageURL(name, ver),
|
PURL: portableExecutablePackageURL(name, ver),
|
||||||
// by nature PE metadata does not have any dependency information, thus we are forced to claim incomplete
|
// by nature PE file metadata does not have any dependency information, thus we are forced to claim unknown completeness
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: metadata,
|
Metadata: metadata,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Active Directory Authentication Library",
|
Name: "Active Directory Authentication Library",
|
||||||
Version: "3.14.40721.0918",
|
Version: "3.14.40721.0918",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DotnetPortableExecutableEntry{
|
Metadata: pkg.DotnetPortableExecutableEntry{
|
||||||
AssemblyVersion: "3.14.2.11",
|
AssemblyVersion: "3.14.2.11",
|
||||||
LegalCopyright: "Copyright (c) Microsoft Corporation. All rights reserved.",
|
LegalCopyright: "Copyright (c) Microsoft Corporation. All rights reserved.",
|
||||||
@ -61,7 +61,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
Name: "äbFileVersi on",
|
Name: "äbFileVersi on",
|
||||||
Version: "4.6.25512.01",
|
Version: "4.6.25512.01",
|
||||||
PURL: "pkg:nuget/%C3%A4bFileVersi%20on@4.6.25512.01",
|
PURL: "pkg:nuget/%C3%A4bFileVersi%20on@4.6.25512.01",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.DotnetPortableExecutableEntry{
|
Metadata: pkg.DotnetPortableExecutableEntry{
|
||||||
LegalCopyright: "© Microsoft Corporation. All rights reserved.",
|
LegalCopyright: "© Microsoft Corporation. All rights reserved.",
|
||||||
InternalName: "äb\x01FileVersion",
|
InternalName: "äb\x01FileVersion",
|
||||||
@ -86,7 +86,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "System.Data.Linq.dll",
|
Name: "System.Data.Linq.dll",
|
||||||
Version: "4.7.3190.0",
|
Version: "4.7.3190.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -104,7 +104,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "The curl executable",
|
Name: "The curl executable",
|
||||||
Version: "8.4.0",
|
Version: "8.4.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -122,7 +122,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Prometheus.AspNetCore.dll",
|
Name: "Prometheus.AspNetCore.dll",
|
||||||
Version: "8.0.1",
|
Version: "8.0.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -139,7 +139,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Hidden Input",
|
Name: "Hidden Input",
|
||||||
Version: "1, 0, 0, 0",
|
Version: "1, 0, 0, 0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -156,7 +156,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "SQLite",
|
Name: "SQLite",
|
||||||
Version: "3.23.2",
|
Version: "3.23.2",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -174,7 +174,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Brave Browser",
|
Name: "Brave Browser",
|
||||||
Version: "80.1.7.92",
|
Version: "80.1.7.92",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -187,7 +187,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Better version",
|
Name: "Better version",
|
||||||
Version: "80.1.7.92",
|
Version: "80.1.7.92",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -200,7 +200,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Better version",
|
Name: "Better version",
|
||||||
Version: "80.1.7.92",
|
Version: "80.1.7.92",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -213,7 +213,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Higher semantic version Product Version",
|
Name: "Higher semantic version Product Version",
|
||||||
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -226,7 +226,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Higher semantic version File Version",
|
Name: "Higher semantic version File Version",
|
||||||
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -239,7 +239,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Invalid semantic version File Version",
|
Name: "Invalid semantic version File Version",
|
||||||
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -252,7 +252,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Invalid semantic version File Version",
|
Name: "Invalid semantic version File Version",
|
||||||
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -265,7 +265,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Invalid semantic version Product Version",
|
Name: "Invalid semantic version Product Version",
|
||||||
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
Version: "3.0.1+b86b61bf676163639795b163d8d753b20aad6207",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -278,7 +278,7 @@ func TestParseDotnetPortableExecutable(t *testing.T) {
|
|||||||
expectedPackage: pkg.Package{
|
expectedPackage: pkg.Package{
|
||||||
Name: "Semantically equal falls through, chooses File Version with more components",
|
Name: "Semantically equal falls through, chooses File Version with more components",
|
||||||
Version: "3.0.0.0",
|
Version: "3.0.0.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ func newPackage(d pkg.ElixirMixLockEntry, locations ...file.Location) pkg.Packag
|
|||||||
PURL: packageURL(d),
|
PURL: packageURL(d),
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
// we do not attempt to parse dependencies from the mix.lock file
|
// we do not attempt to parse dependencies from the mix.lock file
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: d,
|
Metadata: d,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/castore@0.1.17",
|
PURL: "pkg:hex/castore@0.1.17",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "castore",
|
Name: "castore",
|
||||||
Version: "0.1.17",
|
Version: "0.1.17",
|
||||||
@ -34,7 +34,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/connection@1.1.0",
|
PURL: "pkg:hex/connection@1.1.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "connection",
|
Name: "connection",
|
||||||
Version: "1.1.0",
|
Version: "1.1.0",
|
||||||
@ -49,7 +49,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/cowboy@2.9.0",
|
PURL: "pkg:hex/cowboy@2.9.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "cowboy",
|
Name: "cowboy",
|
||||||
Version: "2.9.0",
|
Version: "2.9.0",
|
||||||
@ -64,7 +64,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/cowboy_telemetry@0.4.0",
|
PURL: "pkg:hex/cowboy_telemetry@0.4.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "cowboy_telemetry",
|
Name: "cowboy_telemetry",
|
||||||
Version: "0.4.0",
|
Version: "0.4.0",
|
||||||
@ -79,7 +79,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/cowlib@2.11.0",
|
PURL: "pkg:hex/cowlib@2.11.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "cowlib",
|
Name: "cowlib",
|
||||||
Version: "2.11.0",
|
Version: "2.11.0",
|
||||||
@ -94,7 +94,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/db_connection@2.4.2",
|
PURL: "pkg:hex/db_connection@2.4.2",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "db_connection",
|
Name: "db_connection",
|
||||||
Version: "2.4.2",
|
Version: "2.4.2",
|
||||||
@ -109,7 +109,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/decimal@2.0.0",
|
PURL: "pkg:hex/decimal@2.0.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "decimal",
|
Name: "decimal",
|
||||||
Version: "2.0.0",
|
Version: "2.0.0",
|
||||||
@ -124,7 +124,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/earmark_parser@1.4.25",
|
PURL: "pkg:hex/earmark_parser@1.4.25",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "earmark_parser",
|
Name: "earmark_parser",
|
||||||
Version: "1.4.25",
|
Version: "1.4.25",
|
||||||
@ -139,7 +139,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/ecto@3.8.1",
|
PURL: "pkg:hex/ecto@3.8.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "ecto",
|
Name: "ecto",
|
||||||
Version: "3.8.1",
|
Version: "3.8.1",
|
||||||
@ -154,7 +154,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/ecto_sql@3.8.1",
|
PURL: "pkg:hex/ecto_sql@3.8.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "ecto_sql",
|
Name: "ecto_sql",
|
||||||
Version: "3.8.1",
|
Version: "3.8.1",
|
||||||
@ -169,7 +169,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/esbuild@0.5.0",
|
PURL: "pkg:hex/esbuild@0.5.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "esbuild",
|
Name: "esbuild",
|
||||||
Version: "0.5.0",
|
Version: "0.5.0",
|
||||||
@ -184,7 +184,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/ex_doc@0.28.4",
|
PURL: "pkg:hex/ex_doc@0.28.4",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "ex_doc",
|
Name: "ex_doc",
|
||||||
Version: "0.28.4",
|
Version: "0.28.4",
|
||||||
@ -199,7 +199,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/gettext@0.19.1",
|
PURL: "pkg:hex/gettext@0.19.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "gettext",
|
Name: "gettext",
|
||||||
Version: "0.19.1",
|
Version: "0.19.1",
|
||||||
@ -214,7 +214,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/hpax@0.1.1",
|
PURL: "pkg:hex/hpax@0.1.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "hpax",
|
Name: "hpax",
|
||||||
Version: "0.1.1",
|
Version: "0.1.1",
|
||||||
@ -229,7 +229,7 @@ func TestParseMixLock(t *testing.T) {
|
|||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
Locations: locations,
|
Locations: locations,
|
||||||
PURL: "pkg:hex/jason@1.3.0",
|
PURL: "pkg:hex/jason@1.3.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ElixirMixLockEntry{
|
Metadata: pkg.ElixirMixLockEntry{
|
||||||
Name: "jason",
|
Name: "jason",
|
||||||
Version: "1.3.0",
|
Version: "1.3.0",
|
||||||
|
|||||||
@ -15,7 +15,7 @@ func newPackageFromRebar(d pkg.ErlangRebarLockEntry, locations ...file.Location)
|
|||||||
PURL: packageURLFromRebar(d),
|
PURL: packageURLFromRebar(d),
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
// we do not attempt to parse dependencies from the rebar.lock file
|
// we do not attempt to parse dependencies from the rebar.lock file
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: d,
|
Metadata: d,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ func newPackageFromOTP(name, version string, locations ...file.Location) pkg.Pac
|
|||||||
Locations: file.NewLocationSet(locations...),
|
Locations: file.NewLocationSet(locations...),
|
||||||
PURL: packageURLFromOTP(name, version),
|
PURL: packageURLFromOTP(name, version),
|
||||||
// we do not attempt to parse dependencies from app files
|
// we do not attempt to parse dependencies from app files
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Type: pkg.ErlangOTPPkg,
|
Type: pkg.ErlangOTPPkg,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ func TestParseOTPApplication(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.ErlangOTPPkg,
|
Type: pkg.ErlangOTPPkg,
|
||||||
PURL: "pkg:otp/rabbit@3.12.10",
|
PURL: "pkg:otp/rabbit@3.12.10",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -23,7 +23,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/certifi@2.9.0",
|
PURL: "pkg:hex/certifi@2.9.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "certifi",
|
Name: "certifi",
|
||||||
Version: "2.9.0",
|
Version: "2.9.0",
|
||||||
@ -37,7 +37,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/idna@6.1.1",
|
PURL: "pkg:hex/idna@6.1.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "idna",
|
Name: "idna",
|
||||||
Version: "6.1.1",
|
Version: "6.1.1",
|
||||||
@ -51,7 +51,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/metrics@1.0.1",
|
PURL: "pkg:hex/metrics@1.0.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "metrics",
|
Name: "metrics",
|
||||||
Version: "1.0.1",
|
Version: "1.0.1",
|
||||||
@ -65,7 +65,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/mimerl@1.2.0",
|
PURL: "pkg:hex/mimerl@1.2.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "mimerl",
|
Name: "mimerl",
|
||||||
Version: "1.2.0",
|
Version: "1.2.0",
|
||||||
@ -79,7 +79,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/parse_trans@3.3.1",
|
PURL: "pkg:hex/parse_trans@3.3.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "parse_trans",
|
Name: "parse_trans",
|
||||||
Version: "3.3.1",
|
Version: "3.3.1",
|
||||||
@ -93,7 +93,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/ssl_verify_fun@1.1.6",
|
PURL: "pkg:hex/ssl_verify_fun@1.1.6",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "ssl_verify_fun",
|
Name: "ssl_verify_fun",
|
||||||
Version: "1.1.6",
|
Version: "1.1.6",
|
||||||
@ -107,7 +107,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/unicode_util_compat@0.7.0",
|
PURL: "pkg:hex/unicode_util_compat@0.7.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "unicode_util_compat",
|
Name: "unicode_util_compat",
|
||||||
Version: "0.7.0",
|
Version: "0.7.0",
|
||||||
@ -129,7 +129,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/bcrypt@1.1.5",
|
PURL: "pkg:hex/bcrypt@1.1.5",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "bcrypt",
|
Name: "bcrypt",
|
||||||
Version: "1.1.5",
|
Version: "1.1.5",
|
||||||
@ -147,7 +147,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/bson@14308ab927cfa69324742c3de720578094e0bb19",
|
PURL: "pkg:hex/bson@14308ab927cfa69324742c3de720578094e0bb19",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "bson",
|
Name: "bson",
|
||||||
Version: "14308ab927cfa69324742c3de720578094e0bb19",
|
Version: "14308ab927cfa69324742c3de720578094e0bb19",
|
||||||
@ -162,7 +162,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/certifi@2.9.0",
|
PURL: "pkg:hex/certifi@2.9.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "certifi",
|
Name: "certifi",
|
||||||
Version: "2.9.0",
|
Version: "2.9.0",
|
||||||
@ -179,7 +179,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/stdout_formatter@0.2.3",
|
PURL: "pkg:hex/stdout_formatter@0.2.3",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "stdout_formatter",
|
Name: "stdout_formatter",
|
||||||
Version: "0.2.3",
|
Version: "0.2.3",
|
||||||
@ -197,7 +197,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/swc@4835239dca5a5f4ac7202dd94d7effcaa617d575",
|
PURL: "pkg:hex/swc@4835239dca5a5f4ac7202dd94d7effcaa617d575",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "swc",
|
Name: "swc",
|
||||||
Version: "4835239dca5a5f4ac7202dd94d7effcaa617d575",
|
Version: "4835239dca5a5f4ac7202dd94d7effcaa617d575",
|
||||||
@ -212,7 +212,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/syslog@1.1.0",
|
PURL: "pkg:hex/syslog@1.1.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "syslog",
|
Name: "syslog",
|
||||||
Version: "1.1.0",
|
Version: "1.1.0",
|
||||||
@ -229,7 +229,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/unicode_util_compat@0.7.0",
|
PURL: "pkg:hex/unicode_util_compat@0.7.0",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "unicode_util_compat",
|
Name: "unicode_util_compat",
|
||||||
Version: "0.7.0",
|
Version: "0.7.0",
|
||||||
@ -247,7 +247,7 @@ func TestParseRebarLock(t *testing.T) {
|
|||||||
Language: pkg.Erlang,
|
Language: pkg.Erlang,
|
||||||
Type: pkg.HexPkg,
|
Type: pkg.HexPkg,
|
||||||
PURL: "pkg:hex/vernemq_dev@6d622aa8c901ae7777433aef2bd049e380c474a6",
|
PURL: "pkg:hex/vernemq_dev@6d622aa8c901ae7777433aef2bd049e380c474a6",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.ErlangRebarLockEntry{
|
Metadata: pkg.ErlangRebarLockEntry{
|
||||||
Name: "vernemq_dev",
|
Name: "vernemq_dev",
|
||||||
Version: "6d622aa8c901ae7777433aef2bd049e380c474a6",
|
Version: "6d622aa8c901ae7777433aef2bd049e380c474a6",
|
||||||
|
|||||||
@ -24,7 +24,7 @@ func TestPortageCataloger(t *testing.T) {
|
|||||||
),
|
),
|
||||||
Licenses: pkg.NewLicenseSet(pkg.NewLicensesFromLocation(expectedLicenseLocation, "Apache-2.0", "BSD", "BSD-2", "CC-BY-SA-4.0", "ISC", "MIT")...),
|
Licenses: pkg.NewLicenseSet(pkg.NewLicensesFromLocation(expectedLicenseLocation, "Apache-2.0", "BSD", "BSD-2", "CC-BY-SA-4.0", "ISC", "MIT")...),
|
||||||
Type: pkg.PortagePkg,
|
Type: pkg.PortagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PortageEntry{
|
Metadata: pkg.PortageEntry{
|
||||||
InstalledSize: 27937835,
|
InstalledSize: 27937835,
|
||||||
Files: []pkg.PortageFileRecord{
|
Files: []pkg.PortageFileRecord{
|
||||||
|
|||||||
@ -45,7 +45,7 @@ func parsePortageContents(_ context.Context, resolver file.Resolver, _ *generic.
|
|||||||
Locations: file.NewLocationSet(
|
Locations: file.NewLocationSet(
|
||||||
reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Type: pkg.PortagePkg,
|
Type: pkg.PortagePkg,
|
||||||
Metadata: pkg.PortageEntry{
|
Metadata: pkg.PortageEntry{
|
||||||
// ensure the default value for a collection is never nil since this may be shown as JSON
|
// ensure the default value for a collection is never nil since this may be shown as JSON
|
||||||
|
|||||||
@ -48,7 +48,7 @@ func newGithubActionPackageUsage(name, version string, workflowLocation file.Loc
|
|||||||
Locations: file.NewLocationSet(workflowLocation.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation)),
|
Locations: file.NewLocationSet(workflowLocation.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation)),
|
||||||
PURL: packageURL(name, version),
|
PURL: packageURL(name, version),
|
||||||
// we cannot see what the dependencies are for a github action are locally from workflow yaml files
|
// we cannot see what the dependencies are for a github action are locally from workflow yaml files
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Type: pkg.GithubActionPkg,
|
Type: pkg.GithubActionPkg,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ func Test_parseCompositeActionForActionUsage(t *testing.T) {
|
|||||||
Type: pkg.GithubActionPkg,
|
Type: pkg.GithubActionPkg,
|
||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
PURL: "pkg:github/actions/setup-go@v4",
|
PURL: "pkg:github/actions/setup-go@v4",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "actions/cache",
|
Name: "actions/cache",
|
||||||
@ -28,7 +28,7 @@ func Test_parseCompositeActionForActionUsage(t *testing.T) {
|
|||||||
Type: pkg.GithubActionPkg,
|
Type: pkg.GithubActionPkg,
|
||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
PURL: "pkg:github/actions/cache@v3",
|
PURL: "pkg:github/actions/cache@v3",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ func Test_parseWorkflowForActionUsage(t *testing.T) {
|
|||||||
Type: pkg.GithubActionPkg,
|
Type: pkg.GithubActionPkg,
|
||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
PURL: "", // don't have enough context without parsing the git origin, which still may not be accurate
|
PURL: "", // don't have enough context without parsing the git origin, which still may not be accurate
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "actions/cache",
|
Name: "actions/cache",
|
||||||
@ -28,7 +28,7 @@ func Test_parseWorkflowForActionUsage(t *testing.T) {
|
|||||||
Type: pkg.GithubActionPkg,
|
Type: pkg.GithubActionPkg,
|
||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
PURL: "pkg:github/actions/cache@v3",
|
PURL: "pkg:github/actions/cache@v3",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "actions/cache/restore",
|
Name: "actions/cache/restore",
|
||||||
@ -36,7 +36,7 @@ func Test_parseWorkflowForActionUsage(t *testing.T) {
|
|||||||
Type: pkg.GithubActionPkg,
|
Type: pkg.GithubActionPkg,
|
||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
PURL: "pkg:github/actions/cache@v3#restore",
|
PURL: "pkg:github/actions/cache@v3#restore",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "actions/cache/save",
|
Name: "actions/cache/save",
|
||||||
@ -44,7 +44,7 @@ func Test_parseWorkflowForActionUsage(t *testing.T) {
|
|||||||
Type: pkg.GithubActionPkg,
|
Type: pkg.GithubActionPkg,
|
||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
PURL: "pkg:github/actions/cache@v3#save",
|
PURL: "pkg:github/actions/cache@v3#save",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "actions/checkout",
|
Name: "actions/checkout",
|
||||||
@ -52,7 +52,7 @@ func Test_parseWorkflowForActionUsage(t *testing.T) {
|
|||||||
Type: pkg.GithubActionPkg,
|
Type: pkg.GithubActionPkg,
|
||||||
Locations: fixtureLocationSet,
|
Locations: fixtureLocationSet,
|
||||||
PURL: "pkg:github/actions/checkout@v4",
|
PURL: "pkg:github/actions/checkout@v4",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,15 +15,13 @@ func (c *goBinaryCataloger) newGoBinaryPackage(dep *debug.Module, mainModule, go
|
|||||||
}
|
}
|
||||||
|
|
||||||
p := pkg.Package{
|
p := pkg.Package{
|
||||||
Name: dep.Path,
|
Name: dep.Path,
|
||||||
Version: dep.Version,
|
Version: dep.Version,
|
||||||
Licenses: pkg.NewLicenseSet(licenses...),
|
Licenses: pkg.NewLicenseSet(licenses...),
|
||||||
PURL: packageURL(dep.Path, dep.Version),
|
PURL: packageURL(dep.Path, dep.Version),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Locations: file.NewLocationSet(locations...),
|
Locations: file.NewLocationSet(locations...),
|
||||||
// we don't have a way to express on a package or relationship the nature of "//indirect" markings on dependencies
|
|
||||||
// so though the dependencies are complete and separable with the raw data, the data in the SBOM is not separable.
|
|
||||||
Dependencies: dependencies,
|
Dependencies: dependencies,
|
||||||
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
||||||
GoCompiledVersion: goVersion,
|
GoCompiledVersion: goVersion,
|
||||||
|
|||||||
@ -136,8 +136,8 @@ func (c *goBinaryCataloger) buildGoPkgInfo(ctx context.Context, licenseScanner l
|
|||||||
lics,
|
lics,
|
||||||
// the buildinfo section is a flat list of dependencies missing all edge information. So all direct and indirect
|
// the buildinfo section is a flat list of dependencies missing all edge information. So all direct and indirect
|
||||||
// dependencies are related directly to the main module. This means that we don't have any way to discover
|
// dependencies are related directly to the main module. This means that we don't have any way to discover
|
||||||
// the completeness of the dependency's dependencies, thus they are incomplete.
|
// the completeness of the dependency's dependencies, thus they are unknown.
|
||||||
pkg.IncompleteDependencies,
|
pkg.UnknownDependencyCompleteness,
|
||||||
location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
)
|
)
|
||||||
if pkg.IsValid(&p) {
|
if pkg.IsValid(&p) {
|
||||||
@ -183,7 +183,9 @@ func (c *goBinaryCataloger) makeGoMainPackage(ctx context.Context, licenseScanne
|
|||||||
experiments,
|
experiments,
|
||||||
lics,
|
lics,
|
||||||
// the buildinfo section is a flat list of dependencies missing all edge information. So all direct and indirect
|
// the buildinfo section is a flat list of dependencies missing all edge information. So all direct and indirect
|
||||||
// dependencies are related directly to the main module.
|
// dependencies are related directly to the main module. Also, we don't have a way to express on a package or
|
||||||
|
// relationship the nature of "//indirect" markings on dependencies so though the dependencies are complete
|
||||||
|
// and separable with the raw data, the data in the SBOM is not separable.
|
||||||
pkg.CompleteWithIndirectDependencies,
|
pkg.CompleteWithIndirectDependencies,
|
||||||
location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
)
|
)
|
||||||
|
|||||||
@ -209,7 +209,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
|
|||||||
},
|
},
|
||||||
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangBinaryBuildinfoEntry{},
|
Metadata: pkg.GolangBinaryBuildinfoEntry{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -255,7 +255,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
|
|||||||
},
|
},
|
||||||
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
||||||
GoCompiledVersion: goCompiledVersion,
|
GoCompiledVersion: goCompiledVersion,
|
||||||
Architecture: archDetails,
|
Architecture: archDetails,
|
||||||
@ -751,7 +751,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
|
|||||||
},
|
},
|
||||||
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
||||||
GoCompiledVersion: goCompiledVersion,
|
GoCompiledVersion: goCompiledVersion,
|
||||||
Architecture: archDetails,
|
Architecture: archDetails,
|
||||||
@ -773,7 +773,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
|
|||||||
},
|
},
|
||||||
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
||||||
GoCompiledVersion: goCompiledVersion,
|
GoCompiledVersion: goCompiledVersion,
|
||||||
Architecture: archDetails,
|
Architecture: archDetails,
|
||||||
@ -831,7 +831,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
|
|||||||
},
|
},
|
||||||
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
||||||
GoCompiledVersion: goCompiledVersion,
|
GoCompiledVersion: goCompiledVersion,
|
||||||
Architecture: archDetails,
|
Architecture: archDetails,
|
||||||
@ -853,7 +853,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
|
|||||||
},
|
},
|
||||||
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
||||||
GoCompiledVersion: goCompiledVersion,
|
GoCompiledVersion: goCompiledVersion,
|
||||||
Architecture: archDetails,
|
Architecture: archDetails,
|
||||||
@ -1010,7 +1010,7 @@ func TestBuildGoPkgInfo(t *testing.T) {
|
|||||||
},
|
},
|
||||||
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
).WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
Metadata: pkg.GolangBinaryBuildinfoEntry{
|
||||||
GoCompiledVersion: "go1.22.2",
|
GoCompiledVersion: "go1.22.2",
|
||||||
Architecture: archDetails,
|
Architecture: archDetails,
|
||||||
|
|||||||
@ -59,14 +59,16 @@ func (c *goModCataloger) parseGoModFile(ctx context.Context, resolver file.Resol
|
|||||||
}
|
}
|
||||||
|
|
||||||
packages[m.Mod.Path] = pkg.Package{
|
packages[m.Mod.Path] = pkg.Package{
|
||||||
Name: m.Mod.Path,
|
Name: m.Mod.Path,
|
||||||
Version: m.Mod.Version,
|
Version: m.Mod.Version,
|
||||||
Licenses: pkg.NewLicenseSet(lics...),
|
Licenses: pkg.NewLicenseSet(lics...),
|
||||||
Locations: file.NewLocationSet(reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation)),
|
Locations: file.NewLocationSet(reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation)),
|
||||||
PURL: packageURL(m.Mod.Path, m.Mod.Version),
|
PURL: packageURL(m.Mod.Path, m.Mod.Version),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
// we don't have a way to express on a package or relationship the nature of "//indirect" markings on dependencies
|
||||||
|
// so though the dependencies are complete and separable with the raw data, the data in the SBOM is not separable.
|
||||||
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{
|
Metadata: pkg.GolangModuleEntry{
|
||||||
H1Digest: digests[fmt.Sprintf("%s %s", m.Mod.Path, m.Mod.Version)],
|
H1Digest: digests[fmt.Sprintf("%s %s", m.Mod.Path, m.Mod.Version)],
|
||||||
},
|
},
|
||||||
@ -85,14 +87,16 @@ func (c *goModCataloger) parseGoModFile(ctx context.Context, resolver file.Resol
|
|||||||
delete(packages, m.Old.Path)
|
delete(packages, m.Old.Path)
|
||||||
|
|
||||||
packages[m.New.Path] = pkg.Package{
|
packages[m.New.Path] = pkg.Package{
|
||||||
Name: m.New.Path,
|
Name: m.New.Path,
|
||||||
Version: m.New.Version,
|
Version: m.New.Version,
|
||||||
Licenses: pkg.NewLicenseSet(lics...),
|
Licenses: pkg.NewLicenseSet(lics...),
|
||||||
Locations: file.NewLocationSet(reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation)),
|
Locations: file.NewLocationSet(reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation)),
|
||||||
PURL: packageURL(m.New.Path, m.New.Version),
|
PURL: packageURL(m.New.Path, m.New.Version),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
// we don't have a way to express on a package or relationship the nature of "//indirect" markings on dependencies
|
||||||
|
// so though the dependencies are complete and separable with the raw data, the data in the SBOM is not separable.
|
||||||
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{
|
Metadata: pkg.GolangModuleEntry{
|
||||||
H1Digest: digests[fmt.Sprintf("%s %s", m.New.Path, m.New.Version)],
|
H1Digest: digests[fmt.Sprintf("%s %s", m.New.Path, m.New.Version)],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -24,7 +24,7 @@ func TestParseGoMod(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/one-package")),
|
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/one-package")),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{},
|
Metadata: pkg.GolangModuleEntry{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -40,7 +40,7 @@ func TestParseGoMod(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{},
|
Metadata: pkg.GolangModuleEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -50,7 +50,7 @@ func TestParseGoMod(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{},
|
Metadata: pkg.GolangModuleEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -60,7 +60,7 @@ func TestParseGoMod(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{},
|
Metadata: pkg.GolangModuleEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -70,7 +70,7 @@ func TestParseGoMod(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{},
|
Metadata: pkg.GolangModuleEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ func TestParseGoMod(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{},
|
Metadata: pkg.GolangModuleEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -90,7 +90,7 @@ func TestParseGoMod(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
Locations: file.NewLocationSet(file.NewLocation("test-fixtures/many-packages")),
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{},
|
Metadata: pkg.GolangModuleEntry{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -125,7 +125,7 @@ func Test_GoSumHashes(t *testing.T) {
|
|||||||
FoundBy: "go-module-file-cataloger",
|
FoundBy: "go-module-file-cataloger",
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{},
|
Metadata: pkg.GolangModuleEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -136,7 +136,7 @@ func Test_GoSumHashes(t *testing.T) {
|
|||||||
FoundBy: "go-module-file-cataloger",
|
FoundBy: "go-module-file-cataloger",
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{
|
Metadata: pkg.GolangModuleEntry{
|
||||||
H1Digest: "h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8=",
|
H1Digest: "h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8=",
|
||||||
},
|
},
|
||||||
@ -149,7 +149,7 @@ func Test_GoSumHashes(t *testing.T) {
|
|||||||
FoundBy: "go-module-file-cataloger",
|
FoundBy: "go-module-file-cataloger",
|
||||||
Language: pkg.Go,
|
Language: pkg.Go,
|
||||||
Type: pkg.GoModulePkg,
|
Type: pkg.GoModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.GolangModuleEntry{
|
Metadata: pkg.GolangModuleEntry{
|
||||||
H1Digest: "h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=",
|
H1Digest: "h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -15,7 +15,7 @@ func newPackage(name, version string, m any, location file.Location) pkg.Package
|
|||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
// in all cases (cabal, stack, etc.) we do not attempt to glean dependency information
|
// in all cases (cabal, stack, etc.) we do not attempt to glean dependency information
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: m,
|
Metadata: m,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "Diff",
|
Name: "Diff",
|
||||||
@ -30,7 +30,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "HTTP",
|
Name: "HTTP",
|
||||||
@ -39,7 +39,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "HUnit",
|
Name: "HUnit",
|
||||||
@ -48,7 +48,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "OneTuple",
|
Name: "OneTuple",
|
||||||
@ -57,7 +57,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "Only",
|
Name: "Only",
|
||||||
@ -66,7 +66,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "PyF",
|
Name: "PyF",
|
||||||
@ -75,7 +75,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "QuickCheck",
|
Name: "QuickCheck",
|
||||||
@ -84,7 +84,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "RSA",
|
Name: "RSA",
|
||||||
@ -93,7 +93,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "SHA",
|
Name: "SHA",
|
||||||
@ -102,7 +102,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "Spock",
|
Name: "Spock",
|
||||||
@ -111,7 +111,7 @@ func TestParseCabalFreeze(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "6042643c15a0b43e522a6693f1e322f05000d519543a84149cb80aeffee34f71",
|
PkgHash: "6042643c15a0b43e522a6693f1e322f05000d519543a84149cb80aeffee34f71",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
@ -35,7 +35,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "cd9b06a458428e493a4d6def725af7ab1ab0fef678fbd871f9586fc7f9aa70be",
|
PkgHash: "cd9b06a458428e493a4d6def725af7ab1ab0fef678fbd871f9586fc7f9aa70be",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
@ -48,7 +48,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "2cfe6e75990e690f595a87cbe553f2e90fcd738610f6c66749c81cc4396b2cc4",
|
PkgHash: "2cfe6e75990e690f595a87cbe553f2e90fcd738610f6c66749c81cc4396b2cc4",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
@ -61,7 +61,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "0848d3cbc9d94e1e539948fa0be4d0326b26335034161bf8076785293444ca6f",
|
PkgHash: "0848d3cbc9d94e1e539948fa0be4d0326b26335034161bf8076785293444ca6f",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
@ -74,7 +74,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "b56d4dea112d97a2ef4b2749508c0ca646828cb2d77b827e8dc433d249bb2062",
|
PkgHash: "b56d4dea112d97a2ef4b2749508c0ca646828cb2d77b827e8dc433d249bb2062",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
@ -87,7 +87,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "52c8eaecd2d1c2a969c0762277c4a8ee72c339a686727d5785932e72ef9c3050",
|
PkgHash: "52c8eaecd2d1c2a969c0762277c4a8ee72c339a686727d5785932e72ef9c3050",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
@ -100,7 +100,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "418c22ed6a19124d457d96bc66bd22c93ac22fad0c7100fe4972bbb4ac989731",
|
PkgHash: "418c22ed6a19124d457d96bc66bd22c93ac22fad0c7100fe4972bbb4ac989731",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
@ -113,7 +113,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "2a38b3dad40d238ab644e234b692c8911423f9d3ed0e36b62287c4a698d92cd1",
|
PkgHash: "2a38b3dad40d238ab644e234b692c8911423f9d3ed0e36b62287c4a698d92cd1",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
@ -126,7 +126,7 @@ func TestParseStackLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlLockEntry{
|
Metadata: pkg.HackageStackYamlLockEntry{
|
||||||
PkgHash: "708ebb95117f2872d2c5a554eb6804cf1126e86abe793b2673f913f14e5eb1ac",
|
PkgHash: "708ebb95117f2872d2c5a554eb6804cf1126e86abe793b2673f913f14e5eb1ac",
|
||||||
SnapshotURL: url,
|
SnapshotURL: url,
|
||||||
|
|||||||
@ -21,7 +21,7 @@ func TestParseStackYaml(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlEntry{
|
Metadata: pkg.HackageStackYamlEntry{
|
||||||
PkgHash: "353c9322847b661e4c6f7c83c2acf8e5c08b682fbe516c7d46c29605937543df",
|
PkgHash: "353c9322847b661e4c6f7c83c2acf8e5c08b682fbe516c7d46c29605937543df",
|
||||||
},
|
},
|
||||||
@ -33,7 +33,7 @@ func TestParseStackYaml(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlEntry{
|
Metadata: pkg.HackageStackYamlEntry{
|
||||||
PkgHash: "98353ee0e2f5d97d2148513f084c1cd37dfda03e48aa9dd7a017c9d9c0ba710e",
|
PkgHash: "98353ee0e2f5d97d2148513f084c1cd37dfda03e48aa9dd7a017c9d9c0ba710e",
|
||||||
},
|
},
|
||||||
@ -45,7 +45,7 @@ func TestParseStackYaml(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlEntry{
|
Metadata: pkg.HackageStackYamlEntry{
|
||||||
PkgHash: "3406ff0c1d592490f53ead8cf2cd22bdf3d79fd125ccaf3add683f6d71c24d55",
|
PkgHash: "3406ff0c1d592490f53ead8cf2cd22bdf3d79fd125ccaf3add683f6d71c24d55",
|
||||||
},
|
},
|
||||||
@ -57,7 +57,7 @@ func TestParseStackYaml(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlEntry{
|
Metadata: pkg.HackageStackYamlEntry{
|
||||||
PkgHash: "7dfac9b454ff2da0abb7560f0ffbe00ae442dd5cb76e8be469f77e6988a70fed",
|
PkgHash: "7dfac9b454ff2da0abb7560f0ffbe00ae442dd5cb76e8be469f77e6988a70fed",
|
||||||
},
|
},
|
||||||
@ -69,7 +69,7 @@ func TestParseStackYaml(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlEntry{
|
Metadata: pkg.HackageStackYamlEntry{
|
||||||
PkgHash: "658a6a74d5a70c040edd6df2a12228c6d9e63082adaad1ed4d0438ad082a0ef3",
|
PkgHash: "658a6a74d5a70c040edd6df2a12228c6d9e63082adaad1ed4d0438ad082a0ef3",
|
||||||
},
|
},
|
||||||
@ -81,7 +81,7 @@ func TestParseStackYaml(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlEntry{
|
Metadata: pkg.HackageStackYamlEntry{
|
||||||
PkgHash: "a126e9087409fef8dcafcd2f8656456527ac7bb163ed4d9cb3a57589042a5fe8",
|
PkgHash: "a126e9087409fef8dcafcd2f8656456527ac7bb163ed4d9cb3a57589042a5fe8",
|
||||||
},
|
},
|
||||||
@ -93,7 +93,7 @@ func TestParseStackYaml(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlEntry{
|
Metadata: pkg.HackageStackYamlEntry{
|
||||||
PkgHash: "fbcf49ecfc3d4da53e797fd0275264cba776ffa324ee223e2a3f4ec2d2c9c4a6",
|
PkgHash: "fbcf49ecfc3d4da53e797fd0275264cba776ffa324ee223e2a3f4ec2d2c9c4a6",
|
||||||
},
|
},
|
||||||
@ -105,7 +105,7 @@ func TestParseStackYaml(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.Haskell,
|
Language: pkg.Haskell,
|
||||||
Type: pkg.HackagePkg,
|
Type: pkg.HackagePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.HackageStackYamlEntry{
|
Metadata: pkg.HackageStackYamlEntry{
|
||||||
PkgHash: "e4dc6473faaa75fbd7eccab4e3ee1d651d75bb0e49946ef0b8b751ccde771a55",
|
PkgHash: "e4dc6473faaa75fbd7eccab4e3ee1d651d75bb0e49946ef0b8b751ccde771a55",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -134,7 +134,7 @@ func TestJvmDistributionCataloger(t *testing.T) {
|
|||||||
cpe.Must("cpe:2.3:a:oracle:jdk:1.8.0:update411:*:*:*:*:*:*", cpe.DeclaredSource),
|
cpe.Must("cpe:2.3:a:oracle:jdk:1.8.0:update411:*:*:*:*:*:*", cpe.DeclaredSource),
|
||||||
},
|
},
|
||||||
PURL: "pkg:generic/oracle/jdk@1.8.0_411-b25",
|
PURL: "pkg:generic/oracle/jdk@1.8.0_411-b25",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaVMInstallation{
|
Metadata: pkg.JavaVMInstallation{
|
||||||
Release: pkg.JavaVMRelease{
|
Release: pkg.JavaVMRelease{
|
||||||
JavaRuntimeVersion: "1.8.0_411-b25",
|
JavaRuntimeVersion: "1.8.0_411-b25",
|
||||||
@ -164,7 +164,7 @@ func TestJvmDistributionCataloger(t *testing.T) {
|
|||||||
Type: pkg.BinaryPkg,
|
Type: pkg.BinaryPkg,
|
||||||
CPEs: []cpe.CPE{cpe.Must("cpe:2.3:a:oracle:openjdk:21.0.4:*:*:*:*:*:*:*", cpe.DeclaredSource)},
|
CPEs: []cpe.CPE{cpe.Must("cpe:2.3:a:oracle:openjdk:21.0.4:*:*:*:*:*:*:*", cpe.DeclaredSource)},
|
||||||
PURL: "pkg:generic/oracle/openjdk@21.0.4%2B7-LTS?repository_url=https://github.com/adoptium/jdk21u.git",
|
PURL: "pkg:generic/oracle/openjdk@21.0.4%2B7-LTS?repository_url=https://github.com/adoptium/jdk21u.git",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaVMInstallation{
|
Metadata: pkg.JavaVMInstallation{
|
||||||
Release: pkg.JavaVMRelease{
|
Release: pkg.JavaVMRelease{
|
||||||
Implementor: "Eclipse Adoptium",
|
Implementor: "Eclipse Adoptium",
|
||||||
|
|||||||
@ -68,8 +68,8 @@ func parseGradleLockfile(_ context.Context, _ file.Resolver, _ *generic.Environm
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
PURL: packageURL(dep.Name, dep.Version, archive),
|
PURL: packageURL(dep.Name, dep.Version, archive),
|
||||||
// though we do have dependencies listed, we do not have them related to one another, thus we must answer incomplete
|
// though we do have dependencies listed, we do not have them related to one another, thus we must answer unknown
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: archive,
|
Metadata: archive,
|
||||||
}
|
}
|
||||||
mappedPkg.SetID()
|
mappedPkg.SetID()
|
||||||
|
|||||||
@ -22,7 +22,7 @@ func Test_parserGradleLockfile(t *testing.T) {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
PURL: "pkg:maven/org.apache.commons/commons-text@1.8",
|
PURL: "pkg:maven/org.apache.commons/commons-text@1.8",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProject: &pkg.JavaPomProject{GroupID: "org.apache.commons", ArtifactID: "commons-text", Version: "1.8", Name: "commons-text"},
|
PomProject: &pkg.JavaPomProject{GroupID: "org.apache.commons", ArtifactID: "commons-text", Version: "1.8", Name: "commons-text"},
|
||||||
},
|
},
|
||||||
@ -33,7 +33,7 @@ func Test_parserGradleLockfile(t *testing.T) {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
PURL: "pkg:maven/org.hamcrest/hamcrest-core@1.3",
|
PURL: "pkg:maven/org.hamcrest/hamcrest-core@1.3",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProject: &pkg.JavaPomProject{GroupID: "org.hamcrest", ArtifactID: "hamcrest-core", Version: "1.3", Name: "hamcrest-core"},
|
PomProject: &pkg.JavaPomProject{GroupID: "org.hamcrest", ArtifactID: "hamcrest-core", Version: "1.3", Name: "hamcrest-core"},
|
||||||
},
|
},
|
||||||
@ -44,7 +44,7 @@ func Test_parserGradleLockfile(t *testing.T) {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
PURL: "pkg:maven/joda-time/joda-time@2.2",
|
PURL: "pkg:maven/joda-time/joda-time@2.2",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProject: &pkg.JavaPomProject{GroupID: "joda-time", ArtifactID: "joda-time", Version: "2.2", Name: "joda-time"},
|
PomProject: &pkg.JavaPomProject{GroupID: "joda-time", ArtifactID: "joda-time", Version: "2.2", Name: "joda-time"},
|
||||||
},
|
},
|
||||||
@ -55,7 +55,7 @@ func Test_parserGradleLockfile(t *testing.T) {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
PURL: "pkg:maven/junit/junit@4.12",
|
PURL: "pkg:maven/junit/junit@4.12",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProject: &pkg.JavaPomProject{GroupID: "junit", ArtifactID: "junit", Version: "4.12", Name: "junit"},
|
PomProject: &pkg.JavaPomProject{GroupID: "junit", ArtifactID: "junit", Version: "4.12", Name: "junit"},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -99,7 +99,7 @@ func parseJVMRelease(_ context.Context, resolver file.Resolver, _ *generic.Envir
|
|||||||
Licenses: licenses,
|
Licenses: licenses,
|
||||||
Type: pkg.BinaryPkg,
|
Type: pkg.BinaryPkg,
|
||||||
// we don't have any dependency information about the JVM package itself
|
// we don't have any dependency information about the JVM package itself
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaVMInstallation{
|
Metadata: pkg.JavaVMInstallation{
|
||||||
Release: *ri,
|
Release: *ri,
|
||||||
Files: files,
|
Files: files,
|
||||||
|
|||||||
@ -164,7 +164,7 @@ func newPackageFromMavenPom(ctx context.Context, r *maven.Resolver, pom *maven.P
|
|||||||
PURL: packageURL(id.ArtifactID, id.Version, m),
|
PURL: packageURL(id.ArtifactID, id.Version, m),
|
||||||
// later in processing we may resolve the dependencies for this package (e.g. online enrichment)
|
// later in processing we may resolve the dependencies for this package (e.g. online enrichment)
|
||||||
// but at this point there is not enough information to claim we have complete dependency information
|
// but at this point there is not enough information to claim we have complete dependency information
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: m,
|
Metadata: m,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -304,7 +304,7 @@ func newPackageFromDependency(ctx context.Context, r *maven.Resolver, pom *maven
|
|||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
// later in processing we may resolve the dependencies for this package (e.g. online enrichment) but
|
// later in processing we may resolve the dependencies for this package (e.g. online enrichment) but
|
||||||
// by default we cannot claim we have complete dependency information
|
// by default we cannot claim we have complete dependency information
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: m,
|
Metadata: m,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@ func Test_parsePomXML(t *testing.T) {
|
|||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Locations: pomLocation,
|
Locations: pomLocation,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "com.joda",
|
GroupID: "com.joda",
|
||||||
@ -68,7 +68,7 @@ func Test_parsePomXML(t *testing.T) {
|
|||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Locations: pomLocation,
|
Locations: pomLocation,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "junit",
|
GroupID: "junit",
|
||||||
@ -506,7 +506,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.apache.commons",
|
GroupID: "org.apache.commons",
|
||||||
@ -522,7 +522,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.junit.jupiter",
|
GroupID: "org.junit.jupiter",
|
||||||
@ -539,7 +539,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.assertj",
|
GroupID: "org.assertj",
|
||||||
@ -556,7 +556,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "commons-io",
|
GroupID: "commons-io",
|
||||||
@ -573,7 +573,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.mockito",
|
GroupID: "org.mockito",
|
||||||
@ -590,7 +590,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.graalvm.js",
|
GroupID: "org.graalvm.js",
|
||||||
@ -607,7 +607,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.graalvm.js",
|
GroupID: "org.graalvm.js",
|
||||||
@ -624,7 +624,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.apache.commons",
|
GroupID: "org.apache.commons",
|
||||||
@ -641,7 +641,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.openjdk.jmh",
|
GroupID: "org.openjdk.jmh",
|
||||||
@ -658,7 +658,7 @@ func getCommonsTextExpectedPackages(resolved bool) expected {
|
|||||||
Language: pkg.Java,
|
Language: pkg.Java,
|
||||||
Type: pkg.JavaPkg,
|
Type: pkg.JavaPkg,
|
||||||
FoundBy: pomCatalogerName,
|
FoundBy: pomCatalogerName,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.openjdk.jmh",
|
GroupID: "org.openjdk.jmh",
|
||||||
@ -772,7 +772,7 @@ func expectedTransientPackageData() expected {
|
|||||||
Name: "commons-lang3",
|
Name: "commons-lang3",
|
||||||
Version: "3.113.7.8.0",
|
Version: "3.113.7.8.0",
|
||||||
// missing pom in test fixtures, this is a search miss
|
// missing pom in test fixtures, this is a search miss
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.apache.commons",
|
GroupID: "org.apache.commons",
|
||||||
@ -784,7 +784,7 @@ func expectedTransientPackageData() expected {
|
|||||||
Name: "commons-lang3",
|
Name: "commons-lang3",
|
||||||
Version: "3.12.0",
|
Version: "3.12.0",
|
||||||
// missing pom in test fixtures, this is a search miss
|
// missing pom in test fixtures, this is a search miss
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.apache.commons",
|
GroupID: "org.apache.commons",
|
||||||
@ -796,7 +796,7 @@ func expectedTransientPackageData() expected {
|
|||||||
Name: "commons-math3.11.0",
|
Name: "commons-math3.11.0",
|
||||||
Version: "3.5",
|
Version: "3.5",
|
||||||
// missing pom in test fixtures, this is a search miss
|
// missing pom in test fixtures, this is a search miss
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.apache.commons",
|
GroupID: "org.apache.commons",
|
||||||
@ -808,7 +808,7 @@ func expectedTransientPackageData() expected {
|
|||||||
Name: "commons-exec",
|
Name: "commons-exec",
|
||||||
Version: "1.3",
|
Version: "1.3",
|
||||||
// missing pom in test fixtures, this is a search miss
|
// missing pom in test fixtures, this is a search miss
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.JavaArchive{
|
Metadata: pkg.JavaArchive{
|
||||||
PomProperties: &pkg.JavaPomProperties{
|
PomProperties: &pkg.JavaPomProperties{
|
||||||
GroupID: "org.apache.commons",
|
GroupID: "org.apache.commons",
|
||||||
|
|||||||
@ -19,7 +19,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation("package-lock.json")),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation("package-lock.json")),
|
||||||
),
|
),
|
||||||
@ -33,7 +33,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", Integrity: "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", Integrity: "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -44,7 +44,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation("package-lock.json")),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation("package-lock.json")),
|
||||||
),
|
),
|
||||||
@ -58,7 +58,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", Integrity: "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", Integrity: "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", Integrity: "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", Integrity: "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", Integrity: "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", Integrity: "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -91,7 +91,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", Integrity: "sha1-2j6nRob6IaGaERwybpDrFaAZZoY="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", Integrity: "sha1-2j6nRob6IaGaERwybpDrFaAZZoY="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -102,7 +102,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", Integrity: "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", Integrity: "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw=="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", Integrity: "sha1-qEeQIusaw2iocTibY1JixQXuNo8="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", Integrity: "sha1-qEeQIusaw2iocTibY1JixQXuNo8="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -124,7 +124,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", Integrity: "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", Integrity: "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -135,7 +135,7 @@ func Test_JavascriptCataloger(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", Integrity: "sha1-o9XabNXAvAAI03I0u68b7WMFkQc="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", Integrity: "sha1-o9XabNXAvAAI03I0u68b7WMFkQc="},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,8 +33,8 @@ func newPackageJSONPackage(u packageJSON, indexLocation file.Location) pkg.Packa
|
|||||||
Licenses: pkg.NewLicenseSet(license...),
|
Licenses: pkg.NewLicenseSet(license...),
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
// though we could glean dependency information from the package.json and surrounding packages found in a node_modules directory,
|
// though we could glean dependency information from the package.json and surrounding packages found in a node_modules directory,
|
||||||
// we do not do so today, so we mark knowledge of dependencies as incomplete.
|
// we do not do so today, so we record "unknown" for this package's dependency completeness field.
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: u.Name,
|
Name: u.Name,
|
||||||
Version: u.Version,
|
Version: u.Version,
|
||||||
@ -92,8 +92,8 @@ func newPackageLockV1Package(cfg CatalogerConfig, resolver file.Resolver, locati
|
|||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
// though we could glean dependency information from the package-lock.json,
|
// though we could glean dependency information from the package-lock.json,
|
||||||
// we do not do so today, so we mark knowledge of dependencies as incomplete.
|
// we do not do so today, so we record "unknown" for this package's dependency completeness field.
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: u.Resolved, Integrity: u.Integrity},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: u.Resolved, Integrity: u.Integrity},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -127,8 +127,8 @@ func newPackageLockV2Package(cfg CatalogerConfig, resolver file.Resolver, locati
|
|||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
// though we could glean dependency information from the package-lock.json,
|
// though we could glean dependency information from the package-lock.json,
|
||||||
// we do not do so today, so we mark knowledge of dependencies as incomplete.
|
// we do not do so today, so we record "unknown" for this package's dependency completeness field.
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: u.Resolved, Integrity: u.Integrity},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: u.Resolved, Integrity: u.Integrity},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -146,8 +146,8 @@ func newPnpmPackage(resolver file.Resolver, location file.Location, name, versio
|
|||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
// though we could glean dependency information from the pnpm files,
|
// though we could glean dependency information from the pnpm files,
|
||||||
// we do not do so today, so we mark knowledge of dependencies as incomplete.
|
// we do not do so today, so we record "unknown" for this package's dependency completeness field.
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -177,8 +177,8 @@ func newYarnLockPackage(cfg CatalogerConfig, resolver file.Resolver, location fi
|
|||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
// though we could glean dependency information from the yarn.lock,
|
// though we could glean dependency information from the yarn.lock,
|
||||||
// we do not do so today, so we mark knowledge of dependencies as incomplete.
|
// we do not do so today, so we record "unknown" for this package's dependency completeness field.
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{Resolved: resolved, Integrity: integrity},
|
Metadata: pkg.YarnLockEntry{Resolved: resolved, Integrity: integrity},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
@ -26,7 +26,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("Artistic-2.0", file.NewLocation("test-fixtures/pkg-json/package.json")),
|
pkg.NewLicenseFromLocations("Artistic-2.0", file.NewLocation("test-fixtures/pkg-json/package.json")),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "npm",
|
Name: "npm",
|
||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
@ -48,7 +48,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("ISC", file.NewLocation("test-fixtures/pkg-json/package-license-object.json")),
|
pkg.NewLicenseFromLocations("ISC", file.NewLocation("test-fixtures/pkg-json/package-license-object.json")),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "npm",
|
Name: "npm",
|
||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
@ -71,7 +71,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
pkg.NewLicenseFromLocations("Apache-2.0", file.NewLocation("test-fixtures/pkg-json/package-license-objects.json")),
|
pkg.NewLicenseFromLocations("Apache-2.0", file.NewLocation("test-fixtures/pkg-json/package-license-objects.json")),
|
||||||
),
|
),
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "npm",
|
Name: "npm",
|
||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
@ -90,7 +90,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
PURL: "pkg:npm/npm@6.14.6",
|
PURL: "pkg:npm/npm@6.14.6",
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "npm",
|
Name: "npm",
|
||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
@ -109,7 +109,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
PURL: "pkg:npm/npm@6.14.6",
|
PURL: "pkg:npm/npm@6.14.6",
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "npm",
|
Name: "npm",
|
||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
@ -131,7 +131,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
pkg.NewLicenseFromLocations("Artistic-2.0", file.NewLocation("test-fixtures/pkg-json/package-nested-author.json")),
|
pkg.NewLicenseFromLocations("Artistic-2.0", file.NewLocation("test-fixtures/pkg-json/package-nested-author.json")),
|
||||||
),
|
),
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "npm",
|
Name: "npm",
|
||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
@ -153,7 +153,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation("test-fixtures/pkg-json/package-repo-string.json")),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation("test-fixtures/pkg-json/package-repo-string.json")),
|
||||||
),
|
),
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "function-bind",
|
Name: "function-bind",
|
||||||
Version: "1.1.1",
|
Version: "1.1.1",
|
||||||
@ -175,7 +175,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
pkg.NewLicenseFromLocations("Artistic-2.0", file.NewLocation("test-fixtures/pkg-json/package-private.json")),
|
pkg.NewLicenseFromLocations("Artistic-2.0", file.NewLocation("test-fixtures/pkg-json/package-private.json")),
|
||||||
),
|
),
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "npm",
|
Name: "npm",
|
||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
@ -198,7 +198,7 @@ func TestParsePackageJSON(t *testing.T) {
|
|||||||
pkg.NewLicenseFromLocations("Artistic-2.0", file.NewLocation("test-fixtures/pkg-json/package-author-non-standard.json")),
|
pkg.NewLicenseFromLocations("Artistic-2.0", file.NewLocation("test-fixtures/pkg-json/package-author-non-standard.json")),
|
||||||
),
|
),
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{
|
Metadata: pkg.NpmPackage{
|
||||||
Name: "npm",
|
Name: "npm",
|
||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
@ -237,7 +237,7 @@ func TestParsePackageJSON_Partial(t *testing.T) { // see https://github.com/anch
|
|||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
PURL: packageURL("", ""),
|
PURL: packageURL("", ""),
|
||||||
Locations: file.NewLocationSet(file.NewLocation(fixtureFile)),
|
Locations: file.NewLocationSet(file.NewLocation(fixtureFile)),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackage{},
|
Metadata: pkg.NpmPackage{},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40actions/core@1.6.0",
|
PURL: "pkg:npm/%40actions/core@1.6.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz", Integrity: "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz", Integrity: "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw=="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/ansi-regex@3.0.0",
|
PURL: "pkg:npm/ansi-regex@3.0.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", Integrity: "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", Integrity: "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -36,7 +36,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/cowsay@1.4.0",
|
PURL: "pkg:npm/cowsay@1.4.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/cowsay/-/cowsay-1.4.0.tgz", Integrity: "sha512-rdg5k5PsHFVJheO/pmE3aDg2rUDDTfPJau6yYkZYlHFktUz+UxbE+IgnUAEyyCyv4noL5ltxXD0gZzmHPCy/9g=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/cowsay/-/cowsay-1.4.0.tgz", Integrity: "sha512-rdg5k5PsHFVJheO/pmE3aDg2rUDDTfPJau6yYkZYlHFktUz+UxbE+IgnUAEyyCyv4noL5ltxXD0gZzmHPCy/9g=="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -45,7 +45,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/get-stdin@5.0.1",
|
PURL: "pkg:npm/get-stdin@5.0.1",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", Integrity: "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", Integrity: "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -54,7 +54,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/is-fullwidth-code-point@2.0.0",
|
PURL: "pkg:npm/is-fullwidth-code-point@2.0.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", Integrity: "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", Integrity: "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/minimist@0.0.10",
|
PURL: "pkg:npm/minimist@0.0.10",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", Integrity: "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", Integrity: "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -72,7 +72,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/optimist@0.6.1",
|
PURL: "pkg:npm/optimist@0.6.1",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", Integrity: "sha1-2j6nRob6IaGaERwybpDrFaAZZoY="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", Integrity: "sha1-2j6nRob6IaGaERwybpDrFaAZZoY="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -81,7 +81,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/string-width@2.1.1",
|
PURL: "pkg:npm/string-width@2.1.1",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", Integrity: "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", Integrity: "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw=="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -90,7 +90,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/strip-ansi@4.0.0",
|
PURL: "pkg:npm/strip-ansi@4.0.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", Integrity: "sha1-qEeQIusaw2iocTibY1JixQXuNo8="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", Integrity: "sha1-qEeQIusaw2iocTibY1JixQXuNo8="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -99,7 +99,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/strip-eof@1.0.0",
|
PURL: "pkg:npm/strip-eof@1.0.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", Integrity: "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", Integrity: "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@ func TestParsePackageLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/wordwrap@0.0.3",
|
PURL: "pkg:npm/wordwrap@0.0.3",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", Integrity: "sha1-o9XabNXAvAAI03I0u68b7WMFkQc="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", Integrity: "sha1-o9XabNXAvAAI03I0u68b7WMFkQc="},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -130,7 +130,7 @@ func TestParsePackageLockV2(t *testing.T) {
|
|||||||
Version: "6.14.6",
|
Version: "6.14.6",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
PURL: "pkg:npm/npm@6.14.6",
|
PURL: "pkg:npm/npm@6.14.6",
|
||||||
Metadata: pkg.NpmPackageLockEntry{},
|
Metadata: pkg.NpmPackageLockEntry{},
|
||||||
},
|
},
|
||||||
@ -140,7 +140,7 @@ func TestParsePackageLockV2(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40types/prop-types@15.7.5",
|
PURL: "pkg:npm/%40types/prop-types@15.7.5",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
||||||
),
|
),
|
||||||
@ -152,7 +152,7 @@ func TestParsePackageLockV2(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40types/react@18.0.17",
|
PURL: "pkg:npm/%40types/react@18.0.17",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
||||||
),
|
),
|
||||||
@ -164,7 +164,7 @@ func TestParsePackageLockV2(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40types/scheduler@0.16.2",
|
PURL: "pkg:npm/%40types/scheduler@0.16.2",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
||||||
),
|
),
|
||||||
@ -176,7 +176,7 @@ func TestParsePackageLockV2(t *testing.T) {
|
|||||||
PURL: "pkg:npm/csstype@3.1.0",
|
PURL: "pkg:npm/csstype@3.1.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
||||||
),
|
),
|
||||||
@ -199,7 +199,7 @@ func TestParsePackageLockV3(t *testing.T) {
|
|||||||
Version: "1.0.0",
|
Version: "1.0.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
PURL: "pkg:npm/lock-v3-fixture@1.0.0",
|
PURL: "pkg:npm/lock-v3-fixture@1.0.0",
|
||||||
Metadata: pkg.NpmPackageLockEntry{},
|
Metadata: pkg.NpmPackageLockEntry{},
|
||||||
},
|
},
|
||||||
@ -208,7 +208,7 @@ func TestParsePackageLockV3(t *testing.T) {
|
|||||||
Version: "15.7.5",
|
Version: "15.7.5",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
PURL: "pkg:npm/%40types/prop-types@15.7.5",
|
PURL: "pkg:npm/%40types/prop-types@15.7.5",
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", Integrity: "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", Integrity: "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="},
|
||||||
},
|
},
|
||||||
@ -217,7 +217,7 @@ func TestParsePackageLockV3(t *testing.T) {
|
|||||||
Version: "18.0.20",
|
Version: "18.0.20",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
PURL: "pkg:npm/%40types/react@18.0.20",
|
PURL: "pkg:npm/%40types/react@18.0.20",
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@types/react/-/react-18.0.20.tgz", Integrity: "sha512-MWul1teSPxujEHVwZl4a5HxQ9vVNsjTchVA+xRqv/VYGCuKGAU6UhfrTdF5aBefwD1BHUD8i/zq+O/vyCm/FrA=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@types/react/-/react-18.0.20.tgz", Integrity: "sha512-MWul1teSPxujEHVwZl4a5HxQ9vVNsjTchVA+xRqv/VYGCuKGAU6UhfrTdF5aBefwD1BHUD8i/zq+O/vyCm/FrA=="},
|
||||||
},
|
},
|
||||||
@ -226,7 +226,7 @@ func TestParsePackageLockV3(t *testing.T) {
|
|||||||
Version: "0.16.2",
|
Version: "0.16.2",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
PURL: "pkg:npm/%40types/scheduler@0.16.2",
|
PURL: "pkg:npm/%40types/scheduler@0.16.2",
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", Integrity: "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", Integrity: "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew=="},
|
||||||
},
|
},
|
||||||
@ -236,7 +236,7 @@ func TestParsePackageLockV3(t *testing.T) {
|
|||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
PURL: "pkg:npm/csstype@3.1.1",
|
PURL: "pkg:npm/csstype@3.1.1",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", Integrity: "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", Integrity: "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw=="},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -256,7 +256,7 @@ func TestParsePackageLockAlias(t *testing.T) {
|
|||||||
PURL: "pkg:npm/case@1.6.2",
|
PURL: "pkg:npm/case@1.6.2",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/case/-/case-1.6.2.tgz", Integrity: "sha512-ll380ZRoraT7mUK2G92UbH+FJVD5AwdVIAYk9xhV1tauh0carDgYByUD1HhjCWsWgxrfQvCeHvtfj7IYR6TKeg=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/case/-/case-1.6.2.tgz", Integrity: "sha512-ll380ZRoraT7mUK2G92UbH+FJVD5AwdVIAYk9xhV1tauh0carDgYByUD1HhjCWsWgxrfQvCeHvtfj7IYR6TKeg=="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -265,7 +265,7 @@ func TestParsePackageLockAlias(t *testing.T) {
|
|||||||
PURL: "pkg:npm/case@1.6.3",
|
PURL: "pkg:npm/case@1.6.3",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/case/-/case-1.6.3.tgz", Integrity: "sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/case/-/case-1.6.3.tgz", Integrity: "sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ=="},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -274,7 +274,7 @@ func TestParsePackageLockAlias(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40bundled-es-modules/chai@4.2.2",
|
PURL: "pkg:npm/%40bundled-es-modules/chai@4.2.2",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@bundled-es-modules/chai/-/chai-4.2.2.tgz", Integrity: "sha512-iGmVYw2/zJCoqyKTtWEYCtFmMyi8WmACQKtky0lpNyEKWX0YIOpKWGD7saMXL+tPpllss0otilxV0SLwyi3Ytg=="},
|
Metadata: pkg.NpmPackageLockEntry{Resolved: "https://registry.npmjs.org/@bundled-es-modules/chai/-/chai-4.2.2.tgz", Integrity: "sha512-iGmVYw2/zJCoqyKTtWEYCtFmMyi8WmACQKtky0lpNyEKWX0YIOpKWGD7saMXL+tPpllss0otilxV0SLwyi3Ytg=="},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -292,7 +292,7 @@ func TestParsePackageLockAlias(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("ISC", file.NewLocation(packageLockV2)),
|
pkg.NewLicenseFromLocations("ISC", file.NewLocation(packageLockV2)),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NpmPackageLockEntry{},
|
Metadata: pkg.NpmPackageLockEntry{},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -321,7 +321,7 @@ func TestParsePackageLockLicenseWithArray(t *testing.T) {
|
|||||||
Version: "1.0.0",
|
Version: "1.0.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("ISC", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("ISC", file.NewLocation(fixture)),
|
||||||
),
|
),
|
||||||
@ -333,7 +333,7 @@ func TestParsePackageLockLicenseWithArray(t *testing.T) {
|
|||||||
Version: "0.0.11",
|
Version: "0.0.11",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
||||||
pkg.NewLicenseFromLocations("Apache2", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("Apache2", file.NewLocation(fixture)),
|
||||||
@ -346,7 +346,7 @@ func TestParsePackageLockLicenseWithArray(t *testing.T) {
|
|||||||
Version: "2.3.8",
|
Version: "2.3.8",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -23,7 +23,7 @@ func TestParsePnpmLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "picocolors",
|
Name: "picocolors",
|
||||||
@ -32,7 +32,7 @@ func TestParsePnpmLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "source-map-js",
|
Name: "source-map-js",
|
||||||
@ -41,7 +41,7 @@ func TestParsePnpmLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "@bcoe/v8-coverage",
|
Name: "@bcoe/v8-coverage",
|
||||||
@ -50,7 +50,7 @@ func TestParsePnpmLock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "@testing-library/react",
|
Name: "@testing-library/react",
|
||||||
@ -80,7 +80,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "@testing-library/user-event",
|
Name: "@testing-library/user-event",
|
||||||
@ -89,7 +89,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "react",
|
Name: "react",
|
||||||
@ -98,7 +98,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "react-dom",
|
Name: "react-dom",
|
||||||
@ -107,7 +107,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "web-vitals",
|
Name: "web-vitals",
|
||||||
@ -116,7 +116,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "@babel/core",
|
Name: "@babel/core",
|
||||||
@ -125,7 +125,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "@types/eslint",
|
Name: "@types/eslint",
|
||||||
@ -134,7 +134,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "read-cache",
|
Name: "read-cache",
|
||||||
@ -143,7 +143,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "schema-utils",
|
Name: "schema-utils",
|
||||||
@ -152,7 +152,7 @@ func TestParsePnpmV6Lock(t *testing.T) {
|
|||||||
Locations: locationSet,
|
Locations: locationSet,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40babel/code-frame@7.10.4",
|
PURL: "pkg:npm/%40babel/code-frame@7.10.4",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -38,7 +38,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40types/minimatch@3.0.3",
|
PURL: "pkg:npm/%40types/minimatch@3.0.3",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -48,7 +48,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40types/qs@6.9.4",
|
PURL: "pkg:npm/%40types/qs@6.9.4",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
PURL: "pkg:npm/ajv@6.12.3",
|
PURL: "pkg:npm/ajv@6.12.3",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -68,7 +68,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
PURL: "pkg:npm/asn1.js@4.10.1",
|
PURL: "pkg:npm/asn1.js@4.10.1",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -78,7 +78,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
PURL: "pkg:npm/atob@2.1.2",
|
PURL: "pkg:npm/atob@2.1.2",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -88,7 +88,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -98,7 +98,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
PURL: "pkg:npm/c0n-fab_u.laTION@7.7.7",
|
PURL: "pkg:npm/c0n-fab_u.laTION@7.7.7",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@ func TestParseYarnBerry(t *testing.T) {
|
|||||||
PURL: "pkg:npm/jhipster-core@7.3.4",
|
PURL: "pkg:npm/jhipster-core@7.3.4",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{},
|
Metadata: pkg.YarnLockEntry{},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -130,7 +130,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40babel/code-frame@7.10.4",
|
PURL: "pkg:npm/%40babel/code-frame@7.10.4",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a",
|
Resolved: "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a",
|
||||||
Integrity: "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
|
Integrity: "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
|
||||||
@ -143,7 +143,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40types/minimatch@3.0.3",
|
PURL: "pkg:npm/%40types/minimatch@3.0.3",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d",
|
Resolved: "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d",
|
||||||
Integrity: "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==",
|
Integrity: "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==",
|
||||||
@ -156,7 +156,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/%40types/qs@6.9.4",
|
PURL: "pkg:npm/%40types/qs@6.9.4",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.4.tgz#a59e851c1ba16c0513ea123830dd639a0a15cb6a",
|
Resolved: "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.4.tgz#a59e851c1ba16c0513ea123830dd639a0a15cb6a",
|
||||||
Integrity: "sha512-+wYo+L6ZF6BMoEjtf8zB2esQsqdV6WsjRK/GP9WOgLPrq87PbNWgIxS76dS5uvl/QXtHGakZmwTznIfcPXcKlQ==",
|
Integrity: "sha512-+wYo+L6ZF6BMoEjtf8zB2esQsqdV6WsjRK/GP9WOgLPrq87PbNWgIxS76dS5uvl/QXtHGakZmwTznIfcPXcKlQ==",
|
||||||
@ -169,7 +169,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/ajv@6.12.3",
|
PURL: "pkg:npm/ajv@6.12.3",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/ajv/-/ajv-6.12.3.tgz#18c5af38a111ddeb4f2697bd78d68abc1cabd706",
|
Resolved: "https://registry.yarnpkg.com/ajv/-/ajv-6.12.3.tgz#18c5af38a111ddeb4f2697bd78d68abc1cabd706",
|
||||||
Integrity: "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==",
|
Integrity: "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==",
|
||||||
@ -182,7 +182,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/asn1.js@4.10.1",
|
PURL: "pkg:npm/asn1.js@4.10.1",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0",
|
Resolved: "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0",
|
||||||
Integrity: "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==",
|
Integrity: "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==",
|
||||||
@ -196,7 +196,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/atob@2.1.2",
|
PURL: "pkg:npm/atob@2.1.2",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9",
|
Resolved: "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9",
|
||||||
Integrity: "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
|
Integrity: "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
|
||||||
@ -209,7 +209,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/aws-sdk@2.706.0",
|
PURL: "pkg:npm/aws-sdk@2.706.0",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.706.0.tgz#09f65e9a91ecac5a635daf934082abae30eca953",
|
Resolved: "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.706.0.tgz#09f65e9a91ecac5a635daf934082abae30eca953",
|
||||||
Integrity: "sha512-7GT+yrB5Wb/zOReRdv/Pzkb2Qt+hz6B/8FGMVaoysX3NryHvQUdz7EQWi5yhg9CxOjKxdw5lFwYSs69YlSp1KA==",
|
Integrity: "sha512-7GT+yrB5Wb/zOReRdv/Pzkb2Qt+hz6B/8FGMVaoysX3NryHvQUdz7EQWi5yhg9CxOjKxdw5lFwYSs69YlSp1KA==",
|
||||||
@ -222,7 +222,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/jhipster-core@7.3.4",
|
PURL: "pkg:npm/jhipster-core@7.3.4",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/jhipster-core/-/jhipster-core-7.3.4.tgz#c34b8c97c7f4e8b7518dae015517e2112c73cc80",
|
Resolved: "https://registry.yarnpkg.com/jhipster-core/-/jhipster-core-7.3.4.tgz#c34b8c97c7f4e8b7518dae015517e2112c73cc80",
|
||||||
Integrity: "sha512-AUhT69kNkqppaJZVfan/xnKG4Gs9Ggj7YLtTZFVe+xg+THrbMb5Ng7PL07PDlDw4KAEA33GMCwuAf65E8EpC4g==",
|
Integrity: "sha512-AUhT69kNkqppaJZVfan/xnKG4Gs9Ggj7YLtTZFVe+xg+THrbMb5Ng7PL07PDlDw4KAEA33GMCwuAf65E8EpC4g==",
|
||||||
@ -235,7 +235,7 @@ func TestParseYarnLock(t *testing.T) {
|
|||||||
PURL: "pkg:npm/something-i-made-up@7.7.7",
|
PURL: "pkg:npm/something-i-made-up@7.7.7",
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/something-i-made-up/-/c0n-fab_u.laTION-7.7.7.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0",
|
Resolved: "https://registry.yarnpkg.com/something-i-made-up/-/c0n-fab_u.laTION-7.7.7.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0",
|
||||||
Integrity: "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==",
|
Integrity: "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==",
|
||||||
@ -283,7 +283,7 @@ func TestSearchYarnForLicenses(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(pkg.NewLicense("MIT")),
|
Licenses: pkg.NewLicenseSet(pkg.NewLicense("MIT")),
|
||||||
Language: pkg.JavaScript,
|
Language: pkg.JavaScript,
|
||||||
Type: pkg.NpmPkg,
|
Type: pkg.NpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.YarnLockEntry{
|
Metadata: pkg.YarnLockEntry{
|
||||||
Resolved: "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a",
|
Resolved: "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a",
|
||||||
Integrity: "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
|
Integrity: "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
|
||||||
|
|||||||
@ -24,7 +24,7 @@ func Test_KernelCataloger(t *testing.T) {
|
|||||||
Type: pkg.LinuxKernelPkg,
|
Type: pkg.LinuxKernelPkg,
|
||||||
PURL: "pkg:generic/linux-kernel@6.0.7-301.fc37.x86_64",
|
PURL: "pkg:generic/linux-kernel@6.0.7-301.fc37.x86_64",
|
||||||
CPEs: []cpe.CPE{cpe.Must("cpe:2.3:o:linux:linux_kernel:6.0.7-301.fc37.x86_64:*:*:*:*:*:*:*", cpe.NVDDictionaryLookupSource)},
|
CPEs: []cpe.CPE{cpe.Must("cpe:2.3:o:linux:linux_kernel:6.0.7-301.fc37.x86_64:*:*:*:*:*:*:*", cpe.NVDDictionaryLookupSource)},
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.LinuxKernel{
|
Metadata: pkg.LinuxKernel{
|
||||||
Name: "",
|
Name: "",
|
||||||
Architecture: "x86",
|
Architecture: "x86",
|
||||||
@ -59,7 +59,7 @@ func Test_KernelCataloger(t *testing.T) {
|
|||||||
),
|
),
|
||||||
Type: pkg.LinuxKernelModulePkg,
|
Type: pkg.LinuxKernelModulePkg,
|
||||||
PURL: "pkg:generic/ttynull",
|
PURL: "pkg:generic/ttynull",
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.LinuxKernelModule{
|
Metadata: pkg.LinuxKernelModule{
|
||||||
Name: "ttynull",
|
Name: "ttynull",
|
||||||
Version: "",
|
Version: "",
|
||||||
|
|||||||
@ -32,7 +32,7 @@ func newLinuxKernelPackage(metadata pkg.LinuxKernel, archiveLocation file.Locati
|
|||||||
PURL: packageURL(linuxKernelPackageName, metadata.Version),
|
PURL: packageURL(linuxKernelPackageName, metadata.Version),
|
||||||
Type: pkg.LinuxKernelPkg,
|
Type: pkg.LinuxKernelPkg,
|
||||||
Metadata: metadata,
|
Metadata: metadata,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
CPEs: createLinuxKernelCPEs(metadata.Version),
|
CPEs: createLinuxKernelCPEs(metadata.Version),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ func newLinuxKernelModulePackage(metadata pkg.LinuxKernelModule, kmLocation file
|
|||||||
Licenses: pkg.NewLicenseSet(pkg.NewLicensesFromLocation(kmLocation, metadata.License)...),
|
Licenses: pkg.NewLicenseSet(pkg.NewLicensesFromLocation(kmLocation, metadata.License)...),
|
||||||
PURL: packageURL(metadata.Name, metadata.Version),
|
PURL: packageURL(metadata.Name, metadata.Version),
|
||||||
Type: pkg.LinuxKernelModulePkg,
|
Type: pkg.LinuxKernelModulePkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: metadata,
|
Metadata: metadata,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ func newLuaRocksPackage(u luaRocksPackage, indexLocation file.Location) pkg.Pack
|
|||||||
Licenses: pkg.NewLicenseSet(license...),
|
Licenses: pkg.NewLicenseSet(license...),
|
||||||
Type: pkg.LuaRocksPkg,
|
Type: pkg.LuaRocksPkg,
|
||||||
// no attempt is made by the parser function to raise up dependency relationships
|
// no attempt is made by the parser function to raise up dependency relationships
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.LuaRocksPackage{
|
Metadata: pkg.LuaRocksPackage{
|
||||||
Name: u.Name,
|
Name: u.Name,
|
||||||
Version: u.Version,
|
Version: u.Version,
|
||||||
|
|||||||
@ -24,7 +24,7 @@ func TestParseRockspec(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("Apache-2.0", file.NewLocation("test-fixtures/rockspec/kong-3.7.0-0.rockspec")),
|
pkg.NewLicenseFromLocations("Apache-2.0", file.NewLocation("test-fixtures/rockspec/kong-3.7.0-0.rockspec")),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.LuaRocksPackage{
|
Metadata: pkg.LuaRocksPackage{
|
||||||
Name: "kong",
|
Name: "kong",
|
||||||
Version: "3.7.0-0",
|
Version: "3.7.0-0",
|
||||||
@ -46,7 +46,7 @@ func TestParseRockspec(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT/X11", file.NewLocation("test-fixtures/rockspec/lpeg-1.0.2-1.rockspec")),
|
pkg.NewLicenseFromLocations("MIT/X11", file.NewLocation("test-fixtures/rockspec/lpeg-1.0.2-1.rockspec")),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.LuaRocksPackage{
|
Metadata: pkg.LuaRocksPackage{
|
||||||
Name: "LPeg",
|
Name: "LPeg",
|
||||||
Version: "1.0.2-1",
|
Version: "1.0.2-1",
|
||||||
@ -68,7 +68,7 @@ func TestParseRockspec(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation("test-fixtures/rockspec/kong-pgmoon-1.16.2-1.rockspec")),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation("test-fixtures/rockspec/kong-pgmoon-1.16.2-1.rockspec")),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.LuaRocksPackage{
|
Metadata: pkg.LuaRocksPackage{
|
||||||
Name: "kong-pgmoon",
|
Name: "kong-pgmoon",
|
||||||
Version: "1.16.2-1",
|
Version: "1.16.2-1",
|
||||||
@ -90,7 +90,7 @@ func TestParseRockspec(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicenseFromLocations("MIT/X11", file.NewLocation("test-fixtures/rockspec/luasyslog-2.0.1-1.rockspec")),
|
pkg.NewLicenseFromLocations("MIT/X11", file.NewLocation("test-fixtures/rockspec/luasyslog-2.0.1-1.rockspec")),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.LuaRocksPackage{
|
Metadata: pkg.LuaRocksPackage{
|
||||||
Name: "luasyslog",
|
Name: "luasyslog",
|
||||||
Version: "2.0.1-1",
|
Version: "2.0.1-1",
|
||||||
|
|||||||
@ -26,7 +26,7 @@ func TestCataloger_Catalog(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewLocation("nix/store/h0cnbmfcn93xm5dg2x27ixhag1cwndga-glibc-2.34-210-bin")),
|
Locations: file.NewLocationSet(file.NewLocation("nix/store/h0cnbmfcn93xm5dg2x27ixhag1cwndga-glibc-2.34-210-bin")),
|
||||||
FoundBy: catalogerName,
|
FoundBy: catalogerName,
|
||||||
Type: pkg.NixPkg,
|
Type: pkg.NixPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NixStoreEntry{
|
Metadata: pkg.NixStoreEntry{
|
||||||
OutputHash: "h0cnbmfcn93xm5dg2x27ixhag1cwndga",
|
OutputHash: "h0cnbmfcn93xm5dg2x27ixhag1cwndga",
|
||||||
Output: "bin",
|
Output: "bin",
|
||||||
|
|||||||
@ -15,7 +15,7 @@ func newNixStorePackage(storePath nixStorePath, locations ...file.Location) pkg.
|
|||||||
Type: pkg.NixPkg,
|
Type: pkg.NixPkg,
|
||||||
PURL: packageURL(storePath),
|
PURL: packageURL(storePath),
|
||||||
// no attempt is made by the parser function to raise up dependency relationships
|
// no attempt is made by the parser function to raise up dependency relationships
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.NixStoreEntry{
|
Metadata: pkg.NixStoreEntry{
|
||||||
OutputHash: storePath.outputHash,
|
OutputHash: storePath.outputHash,
|
||||||
Output: storePath.output,
|
Output: storePath.output,
|
||||||
|
|||||||
@ -16,7 +16,7 @@ func newOpamPackage(m pkg.OpamPackage, fileLocation file.Location) pkg.Package {
|
|||||||
Type: pkg.OpamPkg,
|
Type: pkg.OpamPkg,
|
||||||
Language: pkg.OCaml,
|
Language: pkg.OCaml,
|
||||||
// no attempt is made by the parser function to raise up dependency relationships
|
// no attempt is made by the parser function to raise up dependency relationships
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: m,
|
Metadata: m,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ func TestParseOpamPackage(t *testing.T) {
|
|||||||
),
|
),
|
||||||
Language: pkg.OCaml,
|
Language: pkg.OCaml,
|
||||||
Type: pkg.OpamPkg,
|
Type: pkg.OpamPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.OpamPackage{
|
Metadata: pkg.OpamPackage{
|
||||||
Name: "ocaml-base-compiler",
|
Name: "ocaml-base-compiler",
|
||||||
Version: "4.14.0",
|
Version: "4.14.0",
|
||||||
@ -68,7 +68,7 @@ func TestParseOpamPackage(t *testing.T) {
|
|||||||
),
|
),
|
||||||
Language: pkg.OCaml,
|
Language: pkg.OCaml,
|
||||||
Type: pkg.OpamPkg,
|
Type: pkg.OpamPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.OpamPackage{
|
Metadata: pkg.OpamPackage{
|
||||||
Name: "alcotest",
|
Name: "alcotest",
|
||||||
Version: "1.5.0",
|
Version: "1.5.0",
|
||||||
|
|||||||
@ -18,7 +18,7 @@ func newComposerLockPackage(pd parsedLockData, indexLocation file.Location) pkg.
|
|||||||
Language: pkg.PHP,
|
Language: pkg.PHP,
|
||||||
Type: pkg.PhpComposerPkg,
|
Type: pkg.PhpComposerPkg,
|
||||||
// no attempt is made by the parser function to raise up dependency relationships
|
// no attempt is made by the parser function to raise up dependency relationships
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pd.PhpComposerLockEntry,
|
Metadata: pd.PhpComposerLockEntry,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ func newComposerInstalledPackage(pd parsedInstalledData, indexLocation file.Loca
|
|||||||
Language: pkg.PHP,
|
Language: pkg.PHP,
|
||||||
Type: pkg.PhpComposerPkg,
|
Type: pkg.PhpComposerPkg,
|
||||||
// no attempt is made by the parser function to raise up dependency relationships
|
// no attempt is made by the parser function to raise up dependency relationships
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pd.PhpComposerInstalledEntry,
|
Metadata: pd.PhpComposerInstalledEntry,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ func newPeclPackage(pd pkg.PhpPeclEntry, indexLocation file.Location) pkg.Packag
|
|||||||
Language: pkg.PHP,
|
Language: pkg.PHP,
|
||||||
Type: pkg.PhpPeclPkg,
|
Type: pkg.PhpPeclPkg,
|
||||||
// no attempt is made by the parser function to raise up dependency relationships
|
// no attempt is made by the parser function to raise up dependency relationships
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pd,
|
Metadata: pd,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ func TestParseComposerFileLock(t *testing.T) {
|
|||||||
),
|
),
|
||||||
Language: pkg.PHP,
|
Language: pkg.PHP,
|
||||||
Type: pkg.PhpComposerPkg,
|
Type: pkg.PhpComposerPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PhpComposerLockEntry{
|
Metadata: pkg.PhpComposerLockEntry{
|
||||||
Name: "adoy/fastcgi-client",
|
Name: "adoy/fastcgi-client",
|
||||||
Version: "1.0.2",
|
Version: "1.0.2",
|
||||||
@ -64,7 +64,7 @@ func TestParseComposerFileLock(t *testing.T) {
|
|||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
||||||
),
|
),
|
||||||
Type: pkg.PhpComposerPkg,
|
Type: pkg.PhpComposerPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PhpComposerLockEntry{
|
Metadata: pkg.PhpComposerLockEntry{
|
||||||
Name: "alcaeus/mongo-php-adapter",
|
Name: "alcaeus/mongo-php-adapter",
|
||||||
Version: "1.1.11",
|
Version: "1.1.11",
|
||||||
|
|||||||
@ -26,7 +26,7 @@ func TestParseInstalledJsonComposerV1(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicense("MIT"),
|
pkg.NewLicense("MIT"),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PhpComposerInstalledEntry{
|
Metadata: pkg.PhpComposerInstalledEntry{
|
||||||
Name: "asm89/stack-cors",
|
Name: "asm89/stack-cors",
|
||||||
Version: "1.3.0",
|
Version: "1.3.0",
|
||||||
@ -76,7 +76,7 @@ func TestParseInstalledJsonComposerV1(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet(
|
Licenses: pkg.NewLicenseSet(
|
||||||
pkg.NewLicense("MIT"),
|
pkg.NewLicense("MIT"),
|
||||||
),
|
),
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PhpComposerInstalledEntry{
|
Metadata: pkg.PhpComposerInstalledEntry{
|
||||||
Name: "behat/mink",
|
Name: "behat/mink",
|
||||||
Version: "v1.8.1",
|
Version: "v1.8.1",
|
||||||
|
|||||||
@ -24,7 +24,7 @@ func TestParsePeclSerialized(t *testing.T) {
|
|||||||
),
|
),
|
||||||
Language: pkg.PHP,
|
Language: pkg.PHP,
|
||||||
Type: pkg.PhpPeclPkg,
|
Type: pkg.PhpPeclPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PhpPeclEntry{
|
Metadata: pkg.PhpPeclEntry{
|
||||||
Name: "memcached",
|
Name: "memcached",
|
||||||
Version: "3.2.0",
|
Version: "3.2.0",
|
||||||
|
|||||||
@ -70,7 +70,7 @@ func parsePipfileLock(_ context.Context, _ file.Resolver, _ *generic.Environment
|
|||||||
name,
|
name,
|
||||||
version,
|
version,
|
||||||
pkg.PythonPipfileLockEntry{Index: index, Hashes: pkgMeta.Hashes},
|
pkg.PythonPipfileLockEntry{Index: index, Hashes: pkgMeta.Hashes},
|
||||||
pkg.IncompleteDependencies, // no attempt is made to resolve dependencies from the lock file
|
pkg.UnknownDependencyCompleteness, // no attempt is made to resolve dependencies from the lock file
|
||||||
reader.Location,
|
reader.Location,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@ func TestParsePipFileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonPipfileLockEntry{
|
Metadata: pkg.PythonPipfileLockEntry{
|
||||||
Index: "https://pypi.org/simple",
|
Index: "https://pypi.org/simple",
|
||||||
Hashes: []string{
|
Hashes: []string{
|
||||||
@ -36,7 +36,7 @@ func TestParsePipFileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonPipfileLockEntry{
|
Metadata: pkg.PythonPipfileLockEntry{
|
||||||
Index: "https://test.pypi.org/simple",
|
Index: "https://test.pypi.org/simple",
|
||||||
Hashes: []string{
|
Hashes: []string{
|
||||||
@ -52,7 +52,7 @@ func TestParsePipFileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonPipfileLockEntry{
|
Metadata: pkg.PythonPipfileLockEntry{
|
||||||
Index: "https://pypi.org/simple",
|
Index: "https://pypi.org/simple",
|
||||||
Hashes: []string{
|
Hashes: []string{
|
||||||
@ -68,7 +68,7 @@ func TestParsePipFileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonPipfileLockEntry{
|
Metadata: pkg.PythonPipfileLockEntry{
|
||||||
Index: "https://pypi.org/simple",
|
Index: "https://pypi.org/simple",
|
||||||
Hashes: []string{
|
Hashes: []string{
|
||||||
|
|||||||
@ -153,7 +153,7 @@ func (rp requirementsParser) parseRequirementsTxt(_ context.Context, _ file.Reso
|
|||||||
URL: parseURL(req.URL),
|
URL: parseURL(req.URL),
|
||||||
Markers: req.Markers,
|
Markers: req.Markers,
|
||||||
},
|
},
|
||||||
pkg.IncompleteDependencies, // not attempt is made by the parser function to resolve dependencies
|
pkg.UnknownDependencyCompleteness, // not attempt is made by the parser function to resolve dependencies
|
||||||
reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@ -23,7 +23,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "flask",
|
Name: "flask",
|
||||||
VersionConstraint: "== 4.0.0",
|
VersionConstraint: "== 4.0.0",
|
||||||
@ -36,7 +36,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "foo",
|
Name: "foo",
|
||||||
VersionConstraint: "== 1.0.0",
|
VersionConstraint: "== 1.0.0",
|
||||||
@ -49,7 +49,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "SomeProject",
|
Name: "SomeProject",
|
||||||
VersionConstraint: "==5.4",
|
VersionConstraint: "==5.4",
|
||||||
@ -63,7 +63,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "dots-._allowed",
|
Name: "dots-._allowed",
|
||||||
VersionConstraint: "== 1.0.0",
|
VersionConstraint: "== 1.0.0",
|
||||||
@ -76,7 +76,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "argh",
|
Name: "argh",
|
||||||
VersionConstraint: "==0.26.2",
|
VersionConstraint: "==0.26.2",
|
||||||
@ -89,7 +89,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "argh",
|
Name: "argh",
|
||||||
VersionConstraint: "==0.26.3",
|
VersionConstraint: "==0.26.3",
|
||||||
@ -102,7 +102,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "celery",
|
Name: "celery",
|
||||||
Extras: []string{"redis", "pytest"},
|
Extras: []string{"redis", "pytest"},
|
||||||
@ -116,7 +116,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "GithubSampleProject",
|
Name: "GithubSampleProject",
|
||||||
VersionConstraint: "== 3.7.1",
|
VersionConstraint: "== 3.7.1",
|
||||||
@ -130,7 +130,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "FrIeNdLy-_-bArD",
|
Name: "FrIeNdLy-_-bArD",
|
||||||
VersionConstraint: "== 1.0.0",
|
VersionConstraint: "== 1.0.0",
|
||||||
@ -167,7 +167,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "Mopidy-Dirble",
|
Name: "Mopidy-Dirble",
|
||||||
VersionConstraint: "~= 1.1",
|
VersionConstraint: "~= 1.1",
|
||||||
@ -180,7 +180,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "sqlalchemy",
|
Name: "sqlalchemy",
|
||||||
VersionConstraint: ">= 1.0.0, <= 2.0.0, != 3.0.0, <= 3.0.0",
|
VersionConstraint: ">= 1.0.0, <= 2.0.0, != 3.0.0, <= 3.0.0",
|
||||||
@ -193,7 +193,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "bar",
|
Name: "bar",
|
||||||
VersionConstraint: ">= 1.0.0, <= 2.0.0, != 3.0.0, <= 3.0.0",
|
VersionConstraint: ">= 1.0.0, <= 2.0.0, != 3.0.0, <= 3.0.0",
|
||||||
@ -206,7 +206,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "numpy",
|
Name: "numpy",
|
||||||
VersionConstraint: ">= 3.4.1",
|
VersionConstraint: ">= 3.4.1",
|
||||||
@ -220,7 +220,7 @@ func TestParseRequirementsTxt(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.PythonRequirementsEntry{
|
Metadata: pkg.PythonRequirementsEntry{
|
||||||
Name: "requests",
|
Name: "requests",
|
||||||
Extras: []string{"security"},
|
Extras: []string{"security"},
|
||||||
|
|||||||
@ -59,7 +59,7 @@ func parseSetup(_ context.Context, _ file.Resolver, _ *generic.Environment, read
|
|||||||
newPackageForIndex(
|
newPackageForIndex(
|
||||||
name,
|
name,
|
||||||
version,
|
version,
|
||||||
pkg.IncompleteDependencies, // no attempt is made by the parser function to resolve dependencies
|
pkg.UnknownDependencyCompleteness, // no attempt is made by the parser function to resolve dependencies
|
||||||
reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
reader.Location.WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@ -25,7 +25,7 @@ func TestParseSetup(t *testing.T) {
|
|||||||
PURL: "pkg:pypi/pathlib3@2.2.0",
|
PURL: "pkg:pypi/pathlib3@2.2.0",
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "mypy",
|
Name: "mypy",
|
||||||
@ -33,7 +33,7 @@ func TestParseSetup(t *testing.T) {
|
|||||||
PURL: "pkg:pypi/mypy@v0.770",
|
PURL: "pkg:pypi/mypy@v0.770",
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "mypy1",
|
Name: "mypy1",
|
||||||
@ -41,7 +41,7 @@ func TestParseSetup(t *testing.T) {
|
|||||||
PURL: "pkg:pypi/mypy1@v0.770",
|
PURL: "pkg:pypi/mypy1@v0.770",
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "mypy2",
|
Name: "mypy2",
|
||||||
@ -49,7 +49,7 @@ func TestParseSetup(t *testing.T) {
|
|||||||
PURL: "pkg:pypi/mypy2@v0.770",
|
PURL: "pkg:pypi/mypy2@v0.770",
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "mypy3",
|
Name: "mypy3",
|
||||||
@ -57,7 +57,7 @@ func TestParseSetup(t *testing.T) {
|
|||||||
PURL: "pkg:pypi/mypy3@v0.770",
|
PURL: "pkg:pypi/mypy3@v0.770",
|
||||||
Language: pkg.Python,
|
Language: pkg.Python,
|
||||||
Type: pkg.PythonPkg,
|
Type: pkg.PythonPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -19,7 +19,7 @@ func TestRPackageCataloger(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet([]pkg.License{pkg.NewLicense("Part of R 4.3.0")}...),
|
Licenses: pkg.NewLicenseSet([]pkg.License{pkg.NewLicense("Part of R 4.3.0")}...),
|
||||||
Language: pkg.R,
|
Language: pkg.R,
|
||||||
Type: pkg.Rpkg,
|
Type: pkg.Rpkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
PURL: "pkg:cran/base@4.3.0",
|
PURL: "pkg:cran/base@4.3.0",
|
||||||
Metadata: pkg.RDescription{
|
Metadata: pkg.RDescription{
|
||||||
Title: "The R Base Package",
|
Title: "The R Base Package",
|
||||||
@ -38,7 +38,7 @@ func TestRPackageCataloger(t *testing.T) {
|
|||||||
Licenses: pkg.NewLicenseSet([]pkg.License{pkg.NewLicense("MIT")}...),
|
Licenses: pkg.NewLicenseSet([]pkg.License{pkg.NewLicense("MIT")}...),
|
||||||
Language: pkg.R,
|
Language: pkg.R,
|
||||||
Type: pkg.Rpkg,
|
Type: pkg.Rpkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
PURL: "pkg:cran/stringr@1.5.0.9000",
|
PURL: "pkg:cran/stringr@1.5.0.9000",
|
||||||
Metadata: pkg.RDescription{
|
Metadata: pkg.RDescription{
|
||||||
Title: "Simple, Consistent Wrappers for Common String Operations",
|
Title: "Simple, Consistent Wrappers for Common String Operations",
|
||||||
|
|||||||
@ -25,7 +25,7 @@ func newPackage(pd parseData, locations ...file.Location) pkg.Package {
|
|||||||
Type: pkg.Rpkg,
|
Type: pkg.Rpkg,
|
||||||
PURL: packageURL(pd),
|
PURL: packageURL(pd),
|
||||||
// no attempt is made by the parser function to resolve dependencies
|
// no attempt is made by the parser function to resolve dependencies
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pd.RDescription,
|
Metadata: pd.RDescription,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ func parseRpmManifest(_ context.Context, _ file.Resolver, _ *generic.Environment
|
|||||||
// Create a new package representing the RPM manifest entry
|
// Create a new package representing the RPM manifest entry
|
||||||
// note: we don't know the quality of the manifest dependency information, so even though there are multiple
|
// note: we don't know the quality of the manifest dependency information, so even though there are multiple
|
||||||
// packages, we can't discern the connectivity of completeness of the data.
|
// packages, we can't discern the connectivity of completeness of the data.
|
||||||
p := newDBPackage(reader.Location, *metadata, nil, nil, pkg.IncompleteDependencies)
|
p := newDBPackage(reader.Location, *metadata, nil, nil, pkg.UnknownDependencyCompleteness)
|
||||||
|
|
||||||
if !pkg.IsValid(&p) {
|
if !pkg.IsValid(&p) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
@ -18,7 +18,7 @@ func TestParseRpmManifest(t *testing.T) {
|
|||||||
PURL: "pkg:rpm/mariner-release@2.0-12.cm2?arch=noarch&upstream=mariner-release-2.0-12.cm2.src.rpm",
|
PURL: "pkg:rpm/mariner-release@2.0-12.cm2?arch=noarch&upstream=mariner-release-2.0-12.cm2.src.rpm",
|
||||||
Locations: file.NewLocationSet(location),
|
Locations: file.NewLocationSet(location),
|
||||||
Type: pkg.RpmPkg,
|
Type: pkg.RpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.RpmDBEntry{
|
Metadata: pkg.RpmDBEntry{
|
||||||
Name: "mariner-release",
|
Name: "mariner-release",
|
||||||
Epoch: nil,
|
Epoch: nil,
|
||||||
@ -36,7 +36,7 @@ func TestParseRpmManifest(t *testing.T) {
|
|||||||
PURL: "pkg:rpm/filesystem@1.1-9.cm2?arch=x86_64&upstream=filesystem-1.1-9.cm2.src.rpm",
|
PURL: "pkg:rpm/filesystem@1.1-9.cm2?arch=x86_64&upstream=filesystem-1.1-9.cm2.src.rpm",
|
||||||
Locations: file.NewLocationSet(location),
|
Locations: file.NewLocationSet(location),
|
||||||
Type: pkg.RpmPkg,
|
Type: pkg.RpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.RpmDBEntry{
|
Metadata: pkg.RpmDBEntry{
|
||||||
Name: "filesystem",
|
Name: "filesystem",
|
||||||
Epoch: nil,
|
Epoch: nil,
|
||||||
@ -54,7 +54,7 @@ func TestParseRpmManifest(t *testing.T) {
|
|||||||
PURL: "pkg:rpm/glibc@2.35-2.cm2?arch=x86_64&upstream=glibc-2.35-2.cm2.src.rpm",
|
PURL: "pkg:rpm/glibc@2.35-2.cm2?arch=x86_64&upstream=glibc-2.35-2.cm2.src.rpm",
|
||||||
Locations: file.NewLocationSet(location),
|
Locations: file.NewLocationSet(location),
|
||||||
Type: pkg.RpmPkg,
|
Type: pkg.RpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.RpmDBEntry{
|
Metadata: pkg.RpmDBEntry{
|
||||||
Name: "glibc",
|
Name: "glibc",
|
||||||
Epoch: nil,
|
Epoch: nil,
|
||||||
@ -72,7 +72,7 @@ func TestParseRpmManifest(t *testing.T) {
|
|||||||
PURL: "pkg:rpm/openssl-libs@1.1.1k-15.cm2?arch=x86_64&upstream=openssl-1.1.1k-15.cm2.src.rpm",
|
PURL: "pkg:rpm/openssl-libs@1.1.1k-15.cm2?arch=x86_64&upstream=openssl-1.1.1k-15.cm2.src.rpm",
|
||||||
Locations: file.NewLocationSet(location),
|
Locations: file.NewLocationSet(location),
|
||||||
Type: pkg.RpmPkg,
|
Type: pkg.RpmPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.RpmDBEntry{
|
Metadata: pkg.RpmDBEntry{
|
||||||
Name: "openssl-libs",
|
Name: "openssl-libs",
|
||||||
Epoch: nil,
|
Epoch: nil,
|
||||||
|
|||||||
@ -15,7 +15,7 @@ func newGemfileLockPackage(name, version string, locations ...file.Location) pkg
|
|||||||
Language: pkg.Ruby,
|
Language: pkg.Ruby,
|
||||||
Type: pkg.GemPkg,
|
Type: pkg.GemPkg,
|
||||||
// no attempt is made by the parser function to resolve dependencies
|
// no attempt is made by the parser function to resolve dependencies
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
}
|
}
|
||||||
|
|
||||||
p.SetID()
|
p.SetID()
|
||||||
@ -33,7 +33,7 @@ func newGemspecPackage(m gemData, gemSpecLocation file.Location) pkg.Package {
|
|||||||
Language: pkg.Ruby,
|
Language: pkg.Ruby,
|
||||||
Type: pkg.GemPkg,
|
Type: pkg.GemPkg,
|
||||||
// no attempt is made by the parser function to resolve dependencies
|
// no attempt is made by the parser function to resolve dependencies
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: m.RubyGemspec,
|
Metadata: m.RubyGemspec,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,58 +12,58 @@ func TestParseGemfileLockEntries(t *testing.T) {
|
|||||||
fixture := "test-fixtures/Gemfile.lock"
|
fixture := "test-fixtures/Gemfile.lock"
|
||||||
locations := file.NewLocationSet(file.NewLocation(fixture))
|
locations := file.NewLocationSet(file.NewLocation(fixture))
|
||||||
var expectedPkgs = []pkg.Package{
|
var expectedPkgs = []pkg.Package{
|
||||||
{Name: "actionmailer", Version: "4.1.1", PURL: "pkg:gem/actionmailer@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "actionmailer", Version: "4.1.1", PURL: "pkg:gem/actionmailer@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "actionpack", Version: "4.1.1", PURL: "pkg:gem/actionpack@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "actionpack", Version: "4.1.1", PURL: "pkg:gem/actionpack@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "actionview", Version: "4.1.1", PURL: "pkg:gem/actionview@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "actionview", Version: "4.1.1", PURL: "pkg:gem/actionview@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "activemodel", Version: "4.1.1", PURL: "pkg:gem/activemodel@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "activemodel", Version: "4.1.1", PURL: "pkg:gem/activemodel@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "activerecord", Version: "4.1.1", PURL: "pkg:gem/activerecord@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "activerecord", Version: "4.1.1", PURL: "pkg:gem/activerecord@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "activesupport", Version: "4.1.1", PURL: "pkg:gem/activesupport@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "activesupport", Version: "4.1.1", PURL: "pkg:gem/activesupport@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "arel", Version: "5.0.1.20140414130214", PURL: "pkg:gem/arel@5.0.1.20140414130214", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "arel", Version: "5.0.1.20140414130214", PURL: "pkg:gem/arel@5.0.1.20140414130214", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "bootstrap-sass", Version: "3.1.1.1", PURL: "pkg:gem/bootstrap-sass@3.1.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "bootstrap-sass", Version: "3.1.1.1", PURL: "pkg:gem/bootstrap-sass@3.1.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "builder", Version: "3.2.2", PURL: "pkg:gem/builder@3.2.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "builder", Version: "3.2.2", PURL: "pkg:gem/builder@3.2.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "coffee-rails", Version: "4.0.1", PURL: "pkg:gem/coffee-rails@4.0.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "coffee-rails", Version: "4.0.1", PURL: "pkg:gem/coffee-rails@4.0.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "coffee-script", Version: "2.2.0", PURL: "pkg:gem/coffee-script@2.2.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "coffee-script", Version: "2.2.0", PURL: "pkg:gem/coffee-script@2.2.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "coffee-script-source", Version: "1.7.0", PURL: "pkg:gem/coffee-script-source@1.7.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "coffee-script-source", Version: "1.7.0", PURL: "pkg:gem/coffee-script-source@1.7.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "erubis", Version: "2.7.0", PURL: "pkg:gem/erubis@2.7.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "erubis", Version: "2.7.0", PURL: "pkg:gem/erubis@2.7.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "execjs", Version: "2.0.2", PURL: "pkg:gem/execjs@2.0.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "execjs", Version: "2.0.2", PURL: "pkg:gem/execjs@2.0.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "google-cloud-errors", Version: "1.3.0", PURL: "pkg:gem/google-cloud-errors@1.3.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "google-cloud-errors", Version: "1.3.0", PURL: "pkg:gem/google-cloud-errors@1.3.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "hike", Version: "1.2.3", PURL: "pkg:gem/hike@1.2.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "hike", Version: "1.2.3", PURL: "pkg:gem/hike@1.2.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "i18n", Version: "0.6.9", PURL: "pkg:gem/i18n@0.6.9", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "i18n", Version: "0.6.9", PURL: "pkg:gem/i18n@0.6.9", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "jbuilder", Version: "2.0.7", PURL: "pkg:gem/jbuilder@2.0.7", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "jbuilder", Version: "2.0.7", PURL: "pkg:gem/jbuilder@2.0.7", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "jquery-rails", Version: "3.1.0", PURL: "pkg:gem/jquery-rails@3.1.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "jquery-rails", Version: "3.1.0", PURL: "pkg:gem/jquery-rails@3.1.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "json", Version: "1.8.1", PURL: "pkg:gem/json@1.8.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "json", Version: "1.8.1", PURL: "pkg:gem/json@1.8.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "kgio", Version: "2.9.2", PURL: "pkg:gem/kgio@2.9.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "kgio", Version: "2.9.2", PURL: "pkg:gem/kgio@2.9.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "libv8", Version: "3.16.14.3", PURL: "pkg:gem/libv8@3.16.14.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "libv8", Version: "3.16.14.3", PURL: "pkg:gem/libv8@3.16.14.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "mail", Version: "2.5.4", PURL: "pkg:gem/mail@2.5.4", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "mail", Version: "2.5.4", PURL: "pkg:gem/mail@2.5.4", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "mime-types", Version: "1.25.1", PURL: "pkg:gem/mime-types@1.25.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "mime-types", Version: "1.25.1", PURL: "pkg:gem/mime-types@1.25.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "minitest", Version: "5.3.4", PURL: "pkg:gem/minitest@5.3.4", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "minitest", Version: "5.3.4", PURL: "pkg:gem/minitest@5.3.4", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "multi_json", Version: "1.10.1", PURL: "pkg:gem/multi_json@1.10.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "multi_json", Version: "1.10.1", PURL: "pkg:gem/multi_json@1.10.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "mysql2", Version: "0.3.16", PURL: "pkg:gem/mysql2@0.3.16", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "mysql2", Version: "0.3.16", PURL: "pkg:gem/mysql2@0.3.16", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "polyglot", Version: "0.3.4", PURL: "pkg:gem/polyglot@0.3.4", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "polyglot", Version: "0.3.4", PURL: "pkg:gem/polyglot@0.3.4", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "rack", Version: "1.5.2", PURL: "pkg:gem/rack@1.5.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "rack", Version: "1.5.2", PURL: "pkg:gem/rack@1.5.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "rack-test", Version: "0.6.2", PURL: "pkg:gem/rack-test@0.6.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "rack-test", Version: "0.6.2", PURL: "pkg:gem/rack-test@0.6.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "rails", Version: "4.1.1", PURL: "pkg:gem/rails@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "rails", Version: "4.1.1", PURL: "pkg:gem/rails@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "railties", Version: "4.1.1", PURL: "pkg:gem/railties@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "railties", Version: "4.1.1", PURL: "pkg:gem/railties@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "raindrops", Version: "0.13.0", PURL: "pkg:gem/raindrops@0.13.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "raindrops", Version: "0.13.0", PURL: "pkg:gem/raindrops@0.13.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "rake", Version: "10.3.2", PURL: "pkg:gem/rake@10.3.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "rake", Version: "10.3.2", PURL: "pkg:gem/rake@10.3.2", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "rdoc", Version: "4.1.1", PURL: "pkg:gem/rdoc@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "rdoc", Version: "4.1.1", PURL: "pkg:gem/rdoc@4.1.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "ref", Version: "1.0.5", PURL: "pkg:gem/ref@1.0.5", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "ref", Version: "1.0.5", PURL: "pkg:gem/ref@1.0.5", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "sass", Version: "3.2.19", PURL: "pkg:gem/sass@3.2.19", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "sass", Version: "3.2.19", PURL: "pkg:gem/sass@3.2.19", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "sass-rails", Version: "4.0.3", PURL: "pkg:gem/sass-rails@4.0.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "sass-rails", Version: "4.0.3", PURL: "pkg:gem/sass-rails@4.0.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "sdoc", Version: "0.4.0", PURL: "pkg:gem/sdoc@0.4.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "sdoc", Version: "0.4.0", PURL: "pkg:gem/sdoc@0.4.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "spring", Version: "1.1.3", PURL: "pkg:gem/spring@1.1.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "spring", Version: "1.1.3", PURL: "pkg:gem/spring@1.1.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "sprockets", Version: "2.11.0", PURL: "pkg:gem/sprockets@2.11.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "sprockets", Version: "2.11.0", PURL: "pkg:gem/sprockets@2.11.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "sprockets-rails", Version: "2.1.3", PURL: "pkg:gem/sprockets-rails@2.1.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "sprockets-rails", Version: "2.1.3", PURL: "pkg:gem/sprockets-rails@2.1.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "sqlite3", Version: "1.3.9", PURL: "pkg:gem/sqlite3@1.3.9", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "sqlite3", Version: "1.3.9", PURL: "pkg:gem/sqlite3@1.3.9", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "therubyracer", Version: "0.12.1", PURL: "pkg:gem/therubyracer@0.12.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "therubyracer", Version: "0.12.1", PURL: "pkg:gem/therubyracer@0.12.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "thor", Version: "0.19.1", PURL: "pkg:gem/thor@0.19.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "thor", Version: "0.19.1", PURL: "pkg:gem/thor@0.19.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "thread_safe", Version: "0.3.3", PURL: "pkg:gem/thread_safe@0.3.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "thread_safe", Version: "0.3.3", PURL: "pkg:gem/thread_safe@0.3.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "tilt", Version: "1.4.1", PURL: "pkg:gem/tilt@1.4.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "tilt", Version: "1.4.1", PURL: "pkg:gem/tilt@1.4.1", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "treetop", Version: "1.4.15", PURL: "pkg:gem/treetop@1.4.15", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "treetop", Version: "1.4.15", PURL: "pkg:gem/treetop@1.4.15", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "turbolinks", Version: "3.0.0", PURL: "pkg:gem/turbolinks@3.0.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "turbolinks", Version: "3.0.0", PURL: "pkg:gem/turbolinks@3.0.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "tzinfo", Version: "1.2.0", PURL: "pkg:gem/tzinfo@1.2.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "tzinfo", Version: "1.2.0", PURL: "pkg:gem/tzinfo@1.2.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "uglifier", Version: "2.5.0", PURL: "pkg:gem/uglifier@2.5.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "uglifier", Version: "2.5.0", PURL: "pkg:gem/uglifier@2.5.0", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
{Name: "unicorn", Version: "4.8.3", PURL: "pkg:gem/unicorn@4.8.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.IncompleteDependencies},
|
{Name: "unicorn", Version: "4.8.3", PURL: "pkg:gem/unicorn@4.8.3", Locations: locations, Language: pkg.Ruby, Type: pkg.GemPkg, Dependencies: pkg.UnknownDependencyCompleteness},
|
||||||
}
|
}
|
||||||
|
|
||||||
pkgtest.TestFileParser(t, fixture, parseGemFileLockEntries, expectedPkgs, nil)
|
pkgtest.TestFileParser(t, fixture, parseGemFileLockEntries, expectedPkgs, nil)
|
||||||
|
|||||||
@ -23,7 +23,7 @@ func TestParseGemspec(t *testing.T) {
|
|||||||
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
pkg.NewLicenseFromLocations("MIT", file.NewLocation(fixture)),
|
||||||
),
|
),
|
||||||
Language: pkg.Ruby,
|
Language: pkg.Ruby,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.RubyGemspec{
|
Metadata: pkg.RubyGemspec{
|
||||||
Name: "bundler",
|
Name: "bundler",
|
||||||
Version: "2.1.4",
|
Version: "2.1.4",
|
||||||
|
|||||||
@ -19,7 +19,7 @@ func TestNewAuditBinaryCataloger(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewVirtualLocation("/hello-auditable", "/hello-auditable")),
|
Locations: file.NewLocationSet(file.NewVirtualLocation("/hello-auditable", "/hello-auditable")),
|
||||||
Language: pkg.Rust,
|
Language: pkg.Rust,
|
||||||
Type: pkg.RustPkg,
|
Type: pkg.RustPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.RustBinaryAuditEntry{
|
Metadata: pkg.RustBinaryAuditEntry{
|
||||||
Name: "auditable",
|
Name: "auditable",
|
||||||
Version: "0.1.0",
|
Version: "0.1.0",
|
||||||
@ -34,7 +34,7 @@ func TestNewAuditBinaryCataloger(t *testing.T) {
|
|||||||
Locations: file.NewLocationSet(file.NewVirtualLocation("/hello-auditable", "/hello-auditable")),
|
Locations: file.NewLocationSet(file.NewVirtualLocation("/hello-auditable", "/hello-auditable")),
|
||||||
Language: pkg.Rust,
|
Language: pkg.Rust,
|
||||||
Type: pkg.RustPkg,
|
Type: pkg.RustPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.RustBinaryAuditEntry{
|
Metadata: pkg.RustBinaryAuditEntry{
|
||||||
Name: "hello-auditable",
|
Name: "hello-auditable",
|
||||||
Version: "0.1.0",
|
Version: "0.1.0",
|
||||||
|
|||||||
@ -48,7 +48,7 @@ func newPackageFromAudit(dep *rustaudit.Package, locations ...file.Location) pkg
|
|||||||
Type: pkg.RustPkg,
|
Type: pkg.RustPkg,
|
||||||
Locations: file.NewLocationSet(locations...),
|
Locations: file.NewLocationSet(locations...),
|
||||||
// no attempt is made by the parser function to resolve dependencies
|
// no attempt is made by the parser function to resolve dependencies
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.RustBinaryAuditEntry{
|
Metadata: pkg.RustBinaryAuditEntry{
|
||||||
Name: dep.Name,
|
Name: dep.Name,
|
||||||
Version: dep.Version,
|
Version: dep.Version,
|
||||||
|
|||||||
@ -17,7 +17,7 @@ func newSwiftPackageManagerPackage(name, version, sourceURL, revision string, lo
|
|||||||
Type: pkg.SwiftPkg,
|
Type: pkg.SwiftPkg,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
// no attempt is made by the parser function to resolve dependencies
|
// no attempt is made by the parser function to resolve dependencies
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
||||||
Revision: revision,
|
Revision: revision,
|
||||||
},
|
},
|
||||||
@ -37,7 +37,7 @@ func newCocoaPodsPackage(name, version, hash string, locations ...file.Location)
|
|||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
// no attempt is made by the parser function to resolve dependencies
|
// no attempt is made by the parser function to resolve dependencies
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: hash,
|
Checksum: hash,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -26,7 +26,7 @@ func TestParsePackageResolved(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.SwiftPkg,
|
Type: pkg.SwiftPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
||||||
Revision: "b14b7f4c528c942f121c8b860b9410b2bf57825e",
|
Revision: "b14b7f4c528c942f121c8b860b9410b2bf57825e",
|
||||||
},
|
},
|
||||||
@ -38,7 +38,7 @@ func TestParsePackageResolved(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.SwiftPkg,
|
Type: pkg.SwiftPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
||||||
Revision: "9cfed92b026c524674ed869a4ff2dcfdeedf8a2a",
|
Revision: "9cfed92b026c524674ed869a4ff2dcfdeedf8a2a",
|
||||||
},
|
},
|
||||||
@ -50,7 +50,7 @@ func TestParsePackageResolved(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.SwiftPkg,
|
Type: pkg.SwiftPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
||||||
Revision: "6c89474e62719ddcc1e9614989fff2f68208fe10",
|
Revision: "6c89474e62719ddcc1e9614989fff2f68208fe10",
|
||||||
},
|
},
|
||||||
@ -62,7 +62,7 @@ func TestParsePackageResolved(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.SwiftPkg,
|
Type: pkg.SwiftPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
||||||
Revision: "937e904258d22af6e447a0b72c0bc67583ef64a2",
|
Revision: "937e904258d22af6e447a0b72c0bc67583ef64a2",
|
||||||
},
|
},
|
||||||
@ -74,7 +74,7 @@ func TestParsePackageResolved(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.SwiftPkg,
|
Type: pkg.SwiftPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
||||||
Revision: "0a5bc04095a675662cf24757cc0640aa2204253b",
|
Revision: "0a5bc04095a675662cf24757cc0640aa2204253b",
|
||||||
},
|
},
|
||||||
@ -98,7 +98,7 @@ func TestParsePackageResolvedV3(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.SwiftPkg,
|
Type: pkg.SwiftPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
||||||
Revision: "80c109b87511041338a4d8d88064088c8dfc079b",
|
Revision: "80c109b87511041338a4d8d88064088c8dfc079b",
|
||||||
},
|
},
|
||||||
@ -110,7 +110,7 @@ func TestParsePackageResolvedV3(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.SwiftPkg,
|
Type: pkg.SwiftPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
Metadata: pkg.SwiftPackageManagerResolvedEntry{
|
||||||
Revision: "64889f0c732f210a935a0ad7cda38f77f876262d",
|
Revision: "64889f0c732f210a935a0ad7cda38f77f876262d",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -20,7 +20,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "4ea1197a744f2fb5fb875fe31caf17ded4762e8f",
|
Checksum: "4ea1197a744f2fb5fb875fe31caf17ded4762e8f",
|
||||||
},
|
},
|
||||||
@ -32,7 +32,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "7a8fc1a691173d21dbddbf86cd515de6efa55086",
|
Checksum: "7a8fc1a691173d21dbddbf86cd515de6efa55086",
|
||||||
},
|
},
|
||||||
@ -44,7 +44,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "7a8fc1a691173d21dbddbf86cd515de6efa55086",
|
Checksum: "7a8fc1a691173d21dbddbf86cd515de6efa55086",
|
||||||
},
|
},
|
||||||
@ -56,7 +56,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "7a8fc1a691173d21dbddbf86cd515de6efa55086",
|
Checksum: "7a8fc1a691173d21dbddbf86cd515de6efa55086",
|
||||||
},
|
},
|
||||||
@ -68,7 +68,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "00c935935f1e8cf0d1e2d6b542e75b88fc3e5e20",
|
Checksum: "00c935935f1e8cf0d1e2d6b542e75b88fc3e5e20",
|
||||||
},
|
},
|
||||||
@ -80,7 +80,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "f1295b29f8c5e640e25335a1b2bd9d805171bd01",
|
Checksum: "f1295b29f8c5e640e25335a1b2bd9d805171bd01",
|
||||||
},
|
},
|
||||||
@ -92,7 +92,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "f1295b29f8c5e640e25335a1b2bd9d805171bd01",
|
Checksum: "f1295b29f8c5e640e25335a1b2bd9d805171bd01",
|
||||||
},
|
},
|
||||||
@ -104,7 +104,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "f1295b29f8c5e640e25335a1b2bd9d805171bd01",
|
Checksum: "f1295b29f8c5e640e25335a1b2bd9d805171bd01",
|
||||||
},
|
},
|
||||||
@ -116,7 +116,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "effba1c940b8337195563c425a6b5862ec875caa",
|
Checksum: "effba1c940b8337195563c425a6b5862ec875caa",
|
||||||
},
|
},
|
||||||
@ -128,7 +128,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "a6d22010845f08fe18fbdf3a07a8e380fd22e0ea",
|
Checksum: "a6d22010845f08fe18fbdf3a07a8e380fd22e0ea",
|
||||||
},
|
},
|
||||||
@ -140,7 +140,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
||||||
},
|
},
|
||||||
@ -152,7 +152,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
||||||
},
|
},
|
||||||
@ -164,7 +164,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
||||||
},
|
},
|
||||||
@ -176,7 +176,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
||||||
},
|
},
|
||||||
@ -188,7 +188,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
||||||
},
|
},
|
||||||
@ -200,7 +200,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
||||||
},
|
},
|
||||||
@ -212,7 +212,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
Checksum: "2e8ab2519452515f7f5a520f5a8f7e0a413abfa3",
|
||||||
},
|
},
|
||||||
@ -224,7 +224,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
||||||
},
|
},
|
||||||
@ -236,7 +236,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
||||||
},
|
},
|
||||||
@ -248,7 +248,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
||||||
},
|
},
|
||||||
@ -260,7 +260,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
||||||
},
|
},
|
||||||
@ -272,7 +272,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
Checksum: "c515c7927fab92d0d9485f49b885b8c5de34fbfb",
|
||||||
},
|
},
|
||||||
@ -284,7 +284,7 @@ func TestParsePodfileLock(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swift,
|
Language: pkg.Swift,
|
||||||
Type: pkg.CocoapodsPkg,
|
Type: pkg.CocoapodsPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.CocoaPodfileLockEntry{
|
Metadata: pkg.CocoaPodfileLockEntry{
|
||||||
Checksum: "7b7ccc0c485bb3bb47082138ff28bc33cd49897f",
|
Checksum: "7b7ccc0c485bb3bb47082138ff28bc33cd49897f",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -15,7 +15,7 @@ func newSwiplPackPackage(m pkg.SwiplPackEntry, locations ...file.Location) pkg.P
|
|||||||
Type: pkg.SwiplPackPkg,
|
Type: pkg.SwiplPackPkg,
|
||||||
Language: pkg.Swipl,
|
Language: pkg.Swipl,
|
||||||
// no attempt is made by the parser function to resolve dependencies
|
// no attempt is made by the parser function to resolve dependencies
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: m,
|
Metadata: m,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ func xTestParsePackPackage(t *testing.T) {
|
|||||||
Locations: locations,
|
Locations: locations,
|
||||||
Language: pkg.Swipl,
|
Language: pkg.Swipl,
|
||||||
Type: pkg.SwiplPackPkg,
|
Type: pkg.SwiplPackPkg,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.SwiplPackEntry{
|
Metadata: pkg.SwiplPackEntry{
|
||||||
Name: "hdt",
|
Name: "hdt",
|
||||||
Version: "0.5.2",
|
Version: "0.5.2",
|
||||||
|
|||||||
@ -19,7 +19,7 @@ func newWordpressPluginPackage(name, version string, m pluginData, location file
|
|||||||
Language: pkg.PHP,
|
Language: pkg.PHP,
|
||||||
Type: pkg.WordpressPluginPkg,
|
Type: pkg.WordpressPluginPkg,
|
||||||
// no attempt is made by the parser function to resolve dependencies
|
// no attempt is made by the parser function to resolve dependencies
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: meta,
|
Metadata: meta,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ func TestParseWordpressPluginFiles(t *testing.T) {
|
|||||||
pkg.NewLicenseFromLocations("GPLv2"),
|
pkg.NewLicenseFromLocations("GPLv2"),
|
||||||
),
|
),
|
||||||
Language: pkg.PHP,
|
Language: pkg.PHP,
|
||||||
Dependencies: pkg.IncompleteDependencies,
|
Dependencies: pkg.UnknownDependencyCompleteness,
|
||||||
Metadata: pkg.WordpressPluginEntry{
|
Metadata: pkg.WordpressPluginEntry{
|
||||||
PluginInstallDirectory: "akismet",
|
PluginInstallDirectory: "akismet",
|
||||||
Author: "Automattic - Anti-spam Team",
|
Author: "Automattic - Anti-spam Team",
|
||||||
|
|||||||
@ -13,8 +13,10 @@ import "strings"
|
|||||||
type DependencyCompleteness string
|
type DependencyCompleteness string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// UnknownDependencyCompleteness indicates that the completeness of the dependencies is unknown. This should be used
|
// UnknownDependencyCompleteness indicates that the completeness of the dependencies cannot be considered
|
||||||
// when the dependency resolution mechanism is not well understood.
|
// positively complete or incomplete. This should be used when the dependency resolution mechanism is not
|
||||||
|
// well understood, the set of dependencies is unknowable, or no attempt has been made to resolve
|
||||||
|
// dependencies (no assertion).
|
||||||
UnknownDependencyCompleteness DependencyCompleteness = "unknown"
|
UnknownDependencyCompleteness DependencyCompleteness = "unknown"
|
||||||
|
|
||||||
// CompleteDependencies indicates that the package has all of its direct dependencies resolved and related to
|
// CompleteDependencies indicates that the package has all of its direct dependencies resolved and related to
|
||||||
@ -27,9 +29,9 @@ const (
|
|||||||
// a direct and indirect dependency from the perspective of this package).
|
// a direct and indirect dependency from the perspective of this package).
|
||||||
CompleteWithIndirectDependencies DependencyCompleteness = "complete-with-indirect"
|
CompleteWithIndirectDependencies DependencyCompleteness = "complete-with-indirect"
|
||||||
|
|
||||||
// IncompleteDependencies indicates that the package does not have all of its direct dependencies resolved.
|
// IncompleteDependencies indicates that the package is known to not have all of its direct dependencies listed.
|
||||||
// This is useful in times when there is more than one mechanism at play for resolving dependencies and the
|
// This is reserved for cases where we know there are a non-zero number of dependencies for a package, but we
|
||||||
// cataloger only implements a subset of them, or in cases where the mechanism for resolving dependencies is limited.
|
// are not listing them intentionally or because we are unable to resolve them.
|
||||||
IncompleteDependencies DependencyCompleteness = "incomplete"
|
IncompleteDependencies DependencyCompleteness = "incomplete"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user