@@ -47,7 +47,7 @@ type ConanLockFile struct {
47
47
// TODO this is tentative and subject to change depending on the OSV schema
48
48
const ConanEcosystem Ecosystem = "ConanCenter"
49
49
50
- func parseConanRenference (ref string ) ConanReference {
50
+ func parseConanReference (ref string ) ConanReference {
51
51
// very flexible format name/version[@username[/channel]][#rrev][:pkgid[#prev]][%timestamp]
52
52
var reference ConanReference
53
53
@@ -110,9 +110,9 @@ func parseConanV1Lock(lockfile ConanLockFile) []PackageDetails {
110
110
111
111
if node .Pref != "" {
112
112
// old format 0.3 (conan 1.27-) lockfiles use "pref" instead of "ref"
113
- reference = parseConanRenference (node .Pref )
113
+ reference = parseConanReference (node .Pref )
114
114
} else if node .Ref != "" {
115
- reference = parseConanRenference (node .Ref )
115
+ reference = parseConanReference (node .Ref )
116
116
} else {
117
117
continue
118
118
}
@@ -134,7 +134,7 @@ func parseConanV1Lock(lockfile ConanLockFile) []PackageDetails {
134
134
135
135
func parseConanRequires (packages * []PackageDetails , requires []string , group string ) {
136
136
for _ , ref := range requires {
137
- reference := parseConanRenference (ref )
137
+ reference := parseConanReference (ref )
138
138
// skip entries with no name, they are most likely consumer's conanfiles
139
139
// and not dependencies to be searched in a database anyway
140
140
if reference .Name == "" {
0 commit comments