Skip to content

Commit

Permalink
bump github.com/arduino/go-paths-helper to v1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Oct 2, 2023
1 parent 4067d7f commit 14fe11f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .licenses/go/github.com/arduino/go-paths-helper.dep.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: github.com/arduino/go-paths-helper
version: v1.9.0
version: v1.9.2
type: go
summary:
summary:
homepage: https://pkg.go.dev/github.com/arduino/go-paths-helper
license: gpl-2.0-or-later
licenses:
Expand Down
4 changes: 2 additions & 2 deletions arduino/cores/packagemanager/install_uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (pme *Explorer) IsManagedPlatformRelease(platformRelease *cores.PlatformRel
if packagesDir.FollowSymLink() != nil {
return false
}
managed := installDir.IsInsideDir(packagesDir)
managed, _ := installDir.IsInsideDir(packagesDir)
return managed
}

Expand Down Expand Up @@ -383,7 +383,7 @@ func (pme *Explorer) IsManagedToolRelease(toolRelease *cores.ToolRelease) bool {
if packagesDir.FollowSymLink() != nil {
return false
}
managed := installDir.IsInsideDir(packagesDir)
managed, _ := installDir.IsInsideDir(packagesDir)
return managed
}

Expand Down
2 changes: 1 addition & 1 deletion arduino/sketch/sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func New(path *paths.Path) (*Sketch, error) {
} else if globals.AdditionalFileValidExtensions[ext] {
// If the user exported the compiles binaries to the Sketch "build" folder
// they would be picked up but we don't want them, so we skip them like so
if p.IsInsideDir(sketch.FullPath.Join("build")) {
if ok, _ := p.IsInsideDir(sketch.FullPath.Join("build")); ok {
continue
}

Expand Down
4 changes: 2 additions & 2 deletions commands/compile/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
var buildPath *paths.Path
if buildPathArg := req.GetBuildPath(); buildPathArg != "" {
buildPath = paths.New(req.GetBuildPath()).Canonical()
if in := buildPath.IsInsideDir(sk.FullPath); in && buildPath.IsDir() {
if in, _ := buildPath.IsInsideDir(sk.FullPath); in && buildPath.IsDir() {
if sk.AdditionalFiles, err = removeBuildFromSketchFiles(sk.AdditionalFiles, buildPath); err != nil {
return nil, err
}
Expand Down Expand Up @@ -377,7 +377,7 @@ func removeBuildFromSketchFiles(files paths.PathList, build *paths.Path) (paths.
var res paths.PathList
ignored := false
for _, file := range files {
if !file.IsInsideDir(build) {
if isInside, _ := file.IsInsideDir(build); !isInside {
res = append(res, file)
} else if !ignored {
ignored = true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replace github.com/mailru/easyjson => github.com/cmaglie/easyjson v0.8.1

require (
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371
github.com/arduino/go-paths-helper v1.9.0
github.com/arduino/go-paths-helper v1.9.2
github.com/arduino/go-properties-orderedmap v1.7.2
github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b
github.com/arduino/go-win32-utils v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA=
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
github.com/arduino/go-paths-helper v1.0.1/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck=
github.com/arduino/go-paths-helper v1.9.0 h1:IjWhDSF24n5bK/30NyApmzoVH9brWzc52KNPpBsRmMc=
github.com/arduino/go-paths-helper v1.9.0/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU=
github.com/arduino/go-paths-helper v1.9.2 h1:omR8DPTL4nbUCWfGey5D+e3WvWfA2zEgoM6ZBRNt7ls=
github.com/arduino/go-paths-helper v1.9.2/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU=
github.com/arduino/go-properties-orderedmap v1.7.2 h1:WwVEtlbwYmESUnOuKVm4rwJg3NHrQ/wVSbtkk4z62SY=
github.com/arduino/go-properties-orderedmap v1.7.2/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b h1:9hDi4F2st6dbLC3y4i02zFT5quS4X6iioWifGlVwfy4=
Expand Down

0 comments on commit 14fe11f

Please sign in to comment.