Skip to content

Commit

Permalink
github-ci: use go1.19.x (#1689)
Browse files Browse the repository at this point in the history
rerun protobuild

fix: check for `exec.ErrDot`

Signed-off-by: Maksim An <maksiman@microsoft.com>
  • Loading branch information
anmaxvl authored Mar 13, 2023
1 parent 1bc5798 commit 66fe5f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- pull_request

env:
GO_VERSION: "1.18.x"
GO_VERSION: "1.19.x"
GOTESTSUM_VERSION: "latest"

jobs:
Expand Down
6 changes: 6 additions & 0 deletions pkg/go-runhcs/runhcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package runhcs
import (
"bytes"
"context"
"errors"
"fmt"
"os"
"os/exec"
Expand Down Expand Up @@ -36,6 +37,11 @@ func getCommandPath() string {
pathi := runhcsPath.Load()
if pathi == nil {
path, err := exec.LookPath(command)
if err != nil {
if errors.Is(err, exec.ErrDot) {
err = nil
}
}
if err != nil {
// LookPath only finds current directory matches based on the
// callers current directory but the caller is not likely in the
Expand Down
3 changes: 3 additions & 0 deletions pkg/ncproxy/ncproxygrpc/v1/networkconfigproxy.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 66fe5f7

Please sign in to comment.