1
0

feat!: make license case specific again (2cf10b9)

BREAKING CHANGE: This feature causes errors for licenses such
as BSD-3-Clause, where 'Clause' part is case specific.
This commit is contained in:
Wiktor Zykubek 2024-12-29 06:03:41 +01:00
parent 45e4eaf773
commit 38149b0173
Signed by: wzykubek
GPG Key ID: 2221881F957D89B9

View File

@ -18,8 +18,7 @@ type Licenser struct {
}
func (l *Licenser) ParseTemplate() (LicenseTemplate, error) {
licenseID := strings.ToUpper(l.LicenseID)
tmplPath := "templates/" + licenseID + ".tmpl"
tmplPath := "templates/" + l.LicenseID + ".tmpl"
data, err := TemplatesDir.ReadFile(tmplPath)
if err != nil {
return LicenseTemplate{}, err