diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2022-05-24 12:11:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 12:11:43 +0000 |
commit | f98a7d1405066208daf751e247c4d194e49f6231 (patch) | |
tree | 15ce6921feeb684c963f0144a5239cb15d671dd8 /vendor/golang.org/x/sys/execabs | |
parent | 737b100c5e0bf704bae6864621c3cf5eb41df2bf (diff) | |
download | podman-f98a7d1405066208daf751e247c4d194e49f6231.tar.gz podman-f98a7d1405066208daf751e247c4d194e49f6231.tar.bz2 podman-f98a7d1405066208daf751e247c4d194e49f6231.zip |
build(deps): bump github.com/vbauerster/mpb/v7 from 7.4.1 to 7.4.2
Bumps [github.com/vbauerster/mpb/v7](https://github.com/vbauerster/mpb) from 7.4.1 to 7.4.2.
- [Release notes](https://github.com/vbauerster/mpb/releases)
- [Commits](https://github.com/vbauerster/mpb/compare/v7.4.1...v7.4.2)
---
updated-dependencies:
- dependency-name: github.com/vbauerster/mpb/v7
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/golang.org/x/sys/execabs')
-rw-r--r-- | vendor/golang.org/x/sys/execabs/execabs.go | 2 | ||||
-rw-r--r-- | vendor/golang.org/x/sys/execabs/execabs_go118.go | 12 | ||||
-rw-r--r-- | vendor/golang.org/x/sys/execabs/execabs_go119.go | 15 |
3 files changed, 28 insertions, 1 deletions
diff --git a/vendor/golang.org/x/sys/execabs/execabs.go b/vendor/golang.org/x/sys/execabs/execabs.go index 78192498d..b981cfbb4 100644 --- a/vendor/golang.org/x/sys/execabs/execabs.go +++ b/vendor/golang.org/x/sys/execabs/execabs.go @@ -53,7 +53,7 @@ func relError(file, path string) error { // LookPath instead returns an error. func LookPath(file string) (string, error) { path, err := exec.LookPath(file) - if err != nil { + if err != nil && !isGo119ErrDot(err) { return "", err } if filepath.Base(file) == file && !filepath.IsAbs(path) { diff --git a/vendor/golang.org/x/sys/execabs/execabs_go118.go b/vendor/golang.org/x/sys/execabs/execabs_go118.go new file mode 100644 index 000000000..6ab5f5089 --- /dev/null +++ b/vendor/golang.org/x/sys/execabs/execabs_go118.go @@ -0,0 +1,12 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !go1.19 +// +build !go1.19 + +package execabs + +func isGo119ErrDot(err error) bool { + return false +} diff --git a/vendor/golang.org/x/sys/execabs/execabs_go119.go b/vendor/golang.org/x/sys/execabs/execabs_go119.go new file mode 100644 index 000000000..1e7a9ada0 --- /dev/null +++ b/vendor/golang.org/x/sys/execabs/execabs_go119.go @@ -0,0 +1,15 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build go1.19 +// +build go1.19 + +package execabs + +import "strings" + +func isGo119ErrDot(err error) bool { + // TODO: return errors.Is(err, exec.ErrDot) + return strings.Contains(err.Error(), "current directory") +} |