Skip to content

Commit

Permalink
add golangci-lint action when running lint on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Yacob <[email protected]>
  • Loading branch information
MarcosDY committed Oct 23, 2023
1 parent 026f8d0 commit e9d6c9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,10 @@ jobs:
update: true
install: >-
git base-devel mingw-w64-x86_64-toolchain unzip
- name: Lint
run: make lint-code
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55
- name: Tidy check
run: make tidy-check
- name: Generate check
Expand Down
2 changes: 2 additions & 0 deletions pkg/common/util/addr_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ import (
)

func GRPCDialContext(ctx context.Context, target string, options ...grpc.DialOption) (*grpc.ClientConn, error) {

options = append(options, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(winio.DialPipeContext))
return grpc.DialContext(ctx, target, options...)

}

func GetWorkloadAPIClientOption(addr net.Addr) (workloadapi.ClientOption, error) {
Expand Down

0 comments on commit e9d6c9f

Please sign in to comment.