Skip to content

Commit

Permalink
When parsing version in platform.txt perform a variable replace
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Aug 9, 2022
1 parent b0e4a90 commit f0e8901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arduino/cores/packagemanager/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ func (pm *PackageManager) loadPlatform(targetPackage *cores.Package, architectur
return fmt.Errorf("%s: %w", tr("loading platform.txt"), err)
}

version, err := semver.Parse(platformProperties.Get("version"))
versionString := platformProperties.ExpandPropsInString(platformProperties.Get("version"))
version, err := semver.Parse(versionString)
if err != nil {
return &arduino.InvalidVersionError{Cause: fmt.Errorf("%s: %s", platformTxtPath, err)}
}
Expand Down

0 comments on commit f0e8901

Please # to comment.