@@ -38,7 +38,7 @@ import (
3838 "github.com/arduino/arduino-builder/gohasissues"
3939 "github.com/arduino/arduino-builder/i18n"
4040 "github.com/arduino/arduino-builder/types"
41- "github.com/arduino/go-properties-map "
41+ "github.com/arduino/go-properties-orderedmap "
4242)
4343
4444type WipeoutBuildPathIfBuildOptionsChanged struct {}
@@ -51,15 +51,15 @@ func (s *WipeoutBuildPathIfBuildOptionsChanged) Run(ctx *types.Context) error {
5151 previousBuildOptionsJson := ctx .BuildOptionsJsonPrevious
5252 logger := ctx .GetLogger ()
5353
54- var opts properties.Map
55- var prevOpts properties.Map
54+ var opts * properties.Map
55+ var prevOpts * properties.Map
5656 json .Unmarshal ([]byte (buildOptionsJson ), & opts )
5757 json .Unmarshal ([]byte (previousBuildOptionsJson ), & prevOpts )
5858
5959 // If SketchLocation path is different but filename is the same, consider it equal
60- if filepath .Base (opts [ "sketchLocation" ]) == filepath .Base (prevOpts [ "sketchLocation" ] ) {
61- delete ( opts , "sketchLocation" )
62- delete ( prevOpts , "sketchLocation" )
60+ if filepath .Base (opts . Get ( "sketchLocation" )) == filepath .Base (prevOpts . Get ( "sketchLocation" ) ) {
61+ opts . Remove ( "sketchLocation" )
62+ prevOpts . Remove ( "sketchLocation" )
6363 }
6464
6565 // If options are not changed check if core has
0 commit comments