Skip to content

Commit

Permalink
chore: handle deprecated SPDX license: StandardML-NJ (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
vargenau committed Oct 17, 2022
1 parent 41bc6bb commit e2d06ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ func Test_processSPDXLicense(t *testing.T) {
"sspl-1": "SSPL-1.0",
"sspl-1.0": "SSPL-1.0",
"sspl-1.0.0": "SSPL-1.0",
"standardml-nj": "StandardML-NJ",
"standardml-nj": "SMLNJ",
"sugarcrm-1": "SugarCRM-1.1.3",
"sugarcrm-1.1": "SugarCRM-1.1.3",
"sugarcrm-1.1.3": "SugarCRM-1.1.3",
Expand Down
2 changes: 2 additions & 0 deletions internal/spdxlicense/generate/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func (l License) canReplace(other License) bool {
return true
case l.ID == "bzip2-1.0.6" && other.ID == "bzip2-1.0.5":
return true
case l.ID == "SMLNJ" && other.ID == "StandardML-NJ":
return true
}
}

Expand Down

0 comments on commit e2d06ce

Please sign in to comment.