Closed akashsinghal closed 4 years ago
LGTM for 1.20, can you post the errors from version v1.27.0?
Here's the error message from staticcheck when upgrading to 1.27.0:
cmd/acb/commands/exec/exec.go:153:54: SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck) ctx := gocontext.WithValue(gocontext.Background(), "debug", debug)
Here's a few solutions I think will work for a fix:
Thanks, I see.
Do you think we can remove putting the "debug" flag in the ctx
altogether? it seems unnecessary and the bool debug
can do the same job.
Purpose of the PR
Fixes #533