File tree 1 file changed +1
-14
lines changed
internal/arduino/cores/packagemanager
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
22
22
"strconv"
23
23
"strings"
24
24
25
- "github.com/arduino/arduino-cli/commands/cmderrors"
26
25
"github.com/arduino/arduino-cli/internal/arduino/cores"
27
26
"github.com/arduino/arduino-cli/internal/i18n"
28
27
"github.com/arduino/go-paths-helper"
@@ -216,19 +215,7 @@ func (pm *Builder) loadPlatform(targetPackage *cores.Package, architecture strin
216
215
// 2. Inside the sketchbook/hardware/PACKAGER/ARCHITECTURE directory:
217
216
// - ARCHITECTURE/boards.txt
218
217
219
- // Determine platform version from the platform.txt metadata
220
- platformTxtPath := platformPath .Join ("platform.txt" )
221
- platformProperties , err := properties .SafeLoad (platformTxtPath .String ())
222
- if err != nil {
223
- return fmt .Errorf ("%s: %w" , i18n .Tr ("loading platform.txt" ), err )
224
- }
225
-
226
- versionString := platformProperties .ExpandPropsInString (platformProperties .Get ("version" ))
227
- version , err := semver .Parse (versionString )
228
- if err != nil {
229
- return & cmderrors.InvalidVersionError {Cause : fmt .Errorf ("%s: %s" , platformTxtPath , err )}
230
- }
231
-
218
+ version := semver .MustParse ("" )
232
219
platform := targetPackage .GetOrCreatePlatform (architecture )
233
220
release := platform .GetOrCreateRelease (version )
234
221
if err := pm .loadPlatformRelease (release , platformPath ); err != nil {
You can’t perform that action at this time.
0 commit comments