Skip to content

Commit 64a0d24

Browse files
bump github.com/arduino/go-paths-helper to v1.9.2
1 parent e41bd9a commit 64a0d24

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Diff for: .licenses/go/github.com/arduino/go-paths-helper.dep.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
name: github.com/arduino/go-paths-helper
3-
version: v1.9.0
3+
version: v1.9.2
44
type: go
5-
summary:
5+
summary:
66
homepage: https://pkg.go.dev/github.com/arduino/go-paths-helper
77
license: gpl-2.0-or-later
88
licenses:

Diff for: arduino/cores/packagemanager/install_uninstall.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (pme *Explorer) IsManagedPlatformRelease(platformRelease *cores.PlatformRel
266266
if packagesDir.FollowSymLink() != nil {
267267
return false
268268
}
269-
managed := installDir.IsInsideDir(packagesDir)
269+
managed, _ := installDir.IsInsideDir(packagesDir)
270270
return managed
271271
}
272272

@@ -383,7 +383,7 @@ func (pme *Explorer) IsManagedToolRelease(toolRelease *cores.ToolRelease) bool {
383383
if packagesDir.FollowSymLink() != nil {
384384
return false
385385
}
386-
managed := installDir.IsInsideDir(packagesDir)
386+
managed, _ := installDir.IsInsideDir(packagesDir)
387387
return managed
388388
}
389389

Diff for: arduino/sketch/sketch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func New(path *paths.Path) (*Sketch, error) {
135135
} else if globals.AdditionalFileValidExtensions[ext] {
136136
// If the user exported the compiles binaries to the Sketch "build" folder
137137
// they would be picked up but we don't want them, so we skip them like so
138-
if p.IsInsideDir(sketch.FullPath.Join("build")) {
138+
if ok, _ := p.IsInsideDir(sketch.FullPath.Join("build")); ok {
139139
continue
140140
}
141141

Diff for: commands/compile/compile.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
135135
var buildPath *paths.Path
136136
if buildPathArg := req.GetBuildPath(); buildPathArg != "" {
137137
buildPath = paths.New(req.GetBuildPath()).Canonical()
138-
if in := buildPath.IsInsideDir(sk.FullPath); in && buildPath.IsDir() {
138+
if in, _ := buildPath.IsInsideDir(sk.FullPath); in && buildPath.IsDir() {
139139
if sk.AdditionalFiles, err = removeBuildFromSketchFiles(sk.AdditionalFiles, buildPath); err != nil {
140140
return nil, err
141141
}
@@ -377,7 +377,7 @@ func removeBuildFromSketchFiles(files paths.PathList, build *paths.Path) (paths.
377377
var res paths.PathList
378378
ignored := false
379379
for _, file := range files {
380-
if !file.IsInsideDir(build) {
380+
if isInside, _ := file.IsInsideDir(build); !isInside {
381381
res = append(res, file)
382382
} else if !ignored {
383383
ignored = true

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ replace github.com/mailru/easyjson => github.com/cmaglie/easyjson v0.8.1
77

88
require (
99
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371
10-
github.com/arduino/go-paths-helper v1.9.0
10+
github.com/arduino/go-paths-helper v1.9.2
1111
github.com/arduino/go-properties-orderedmap v1.7.2
1212
github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b
1313
github.com/arduino/go-win32-utils v1.0.0

Diff for: go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ
5151
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA=
5252
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
5353
github.com/arduino/go-paths-helper v1.0.1/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck=
54-
github.com/arduino/go-paths-helper v1.9.0 h1:IjWhDSF24n5bK/30NyApmzoVH9brWzc52KNPpBsRmMc=
55-
github.com/arduino/go-paths-helper v1.9.0/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU=
54+
github.com/arduino/go-paths-helper v1.9.2 h1:omR8DPTL4nbUCWfGey5D+e3WvWfA2zEgoM6ZBRNt7ls=
55+
github.com/arduino/go-paths-helper v1.9.2/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU=
5656
github.com/arduino/go-properties-orderedmap v1.7.2 h1:WwVEtlbwYmESUnOuKVm4rwJg3NHrQ/wVSbtkk4z62SY=
5757
github.com/arduino/go-properties-orderedmap v1.7.2/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
5858
github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b h1:9hDi4F2st6dbLC3y4i02zFT5quS4X6iioWifGlVwfy4=

0 commit comments

Comments
 (0)