Skip to content

Add Context support to auth methods #1816

Add Context support to auth methods

Add Context support to auth methods #1816

Triggered via pull request May 16, 2024 21:11
Status Failure
Total duration 46s
Artifacts

presubmit.yaml

on: pull_request
Presubmit
34s
Presubmit
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
Presubmit: pkg/v1/google/auth_test.go#L89
cannot use func(ctx context.Context) *exec.Cmd {…} (value of type func(ctx context.Context) *exec.Cmd) as type func() *exec.Cmd in return statement
Presubmit: pkg/v1/google/auth_test.go#L116
cannot use newGcloudCmdMock(tc.env) (value of type func() *exec.Cmd) as type func(ctx context.Context) *exec.Cmd in assignment
Presubmit: pkg/v1/google/auth_test.go#L133
cannot use newGcloudCmdMock("success") (value of type func() *exec.Cmd) as type func(ctx context.Context) *exec.Cmd in assignment
Presubmit: pkg/v1/google/auth_test.go#L207
cannot use newGcloudCmdMock("success") (value of type func() *exec.Cmd) as type func(ctx context.Context) *exec.Cmd in assignment
Presubmit: pkg/v1/google/auth_test.go#L218
cannot use newGcloudCmdMock("badoutput") (value of type func() *exec.Cmd) as type func(ctx context.Context) *exec.Cmd in assignment
Presubmit: pkg/v1/google/auth_test.go#L236
cannot use newGcloudCmdMock("badoutput") (value of type func() *exec.Cmd) as type func(ctx context.Context) *exec.Cmd in assignment
Presubmit: pkg/v1/google/auth_test.go#L269
undefined: ctx (compile)
Presubmit
Process completed with exit code 1.
Presubmit
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.