Skip to content

Commit ff898bf

Browse files
authored
Merge pull request #49 from bcmi-labs/patch-2
Stability patchset 2
2 parents 79df7c1 + 429acc5 commit ff898bf

File tree

13 files changed

+389
-252
lines changed

13 files changed

+389
-252
lines changed

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.12
44

55
require (
66
github.com/arduino/arduino-cli v0.0.0-20201215104024-6a177ebf56f2
7-
github.com/arduino/go-paths-helper v1.4.0
7+
github.com/arduino/go-paths-helper v1.5.0
88
github.com/pkg/errors v0.9.1
99
github.com/sourcegraph/jsonrpc2 v0.0.0-20200429184054-15c2290dcb37
1010
github.com/stretchr/testify v1.6.1

Diff for: go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ github.com/arduino/go-paths-helper v1.0.1/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3
1717
github.com/arduino/go-paths-helper v1.2.0/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck=
1818
github.com/arduino/go-paths-helper v1.4.0 h1:ilnseAdxmN1bFnLxxXHRtcdmt9jBf3O4jtYfWfqule4=
1919
github.com/arduino/go-paths-helper v1.4.0/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU=
20+
github.com/arduino/go-paths-helper v1.5.0 h1:RVo189hD+GhUS1rQ3gixwK1nSbvVR8MGIGa7Gxv2bdM=
21+
github.com/arduino/go-paths-helper v1.5.0/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU=
2022
github.com/arduino/go-properties-orderedmap v1.3.0 h1:4No/vQopB36e7WUIk6H6TxiSEJPiMrVOCZylYmua39o=
2123
github.com/arduino/go-properties-orderedmap v1.3.0/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
2224
github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b h1:9hDi4F2st6dbLC3y4i02zFT5quS4X6iioWifGlVwfy4=

Diff for: handler/builder.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ func (handler *InoHandler) rebuildEnvironmentLoop() {
9494
}
9595
}()
9696

97-
handler.synchronizer.DataMux.Lock()
97+
handler.dataMux.Lock()
9898
handler.initializeWorkbench(nil)
99-
handler.synchronizer.DataMux.Unlock()
99+
handler.dataMux.Unlock()
100100
done <- true
101101
close(done)
102102
}
@@ -112,7 +112,7 @@ func (handler *InoHandler) generateBuildEnvironment() (*paths.Path, error) {
112112
}
113113
data := overridesFile{Overrides: map[string]string{}}
114114
for uri, trackedFile := range handler.docs {
115-
rel, err := uri.AsPath().RelFrom(handler.sketchRoot)
115+
rel, err := paths.New(uri).RelFrom(handler.sketchRoot)
116116
if err != nil {
117117
return nil, errors.WithMessage(err, "dumping tracked files")
118118
}

0 commit comments

Comments
 (0)