File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,16 @@ func (m *BuildOptionsManager) wipeBuildPath() error {
154
154
return wipe ()
155
155
}
156
156
157
+ // Since we might apply a side effect we clone it
158
+ currentOptions := m .currentOptions .Clone ()
157
159
// If SketchLocation path is different but filename is the same, consider it equal
158
- if filepath .Base (m . currentOptions .Get ("sketchLocation" )) == filepath .Base (prevOpts .Get ("sketchLocation" )) {
159
- m . currentOptions .Remove ("sketchLocation" )
160
+ if filepath .Base (currentOptions .Get ("sketchLocation" )) == filepath .Base (prevOpts .Get ("sketchLocation" )) {
161
+ currentOptions .Remove ("sketchLocation" )
160
162
prevOpts .Remove ("sketchLocation" )
161
163
}
162
164
163
165
// If options are not changed check if core has
164
- if m . currentOptions .Equals (prevOpts ) {
166
+ if currentOptions .Equals (prevOpts ) {
165
167
// check if any of the files contained in the core folders has changed
166
168
// since the json was generated - like platform.txt or similar
167
169
// if so, trigger a "safety" wipe
You can’t perform that action at this time.
0 commit comments