Closed ml- closed 3 years ago
TestRootCmd fails because of os.PathError changes introduced in Go 1.16. Although it is still the expected type (alias to fs.PathError), %T in Sprintf prints something else.
%T
cmd_test.go:115: error assertion: have: &fs.PathError{Op:"open", Path:"/nogood", Err:0x2} test case: {[-f /nogood] 0x55adcb95a800 }
thank you @ml-
TestRootCmd fails because of os.PathError changes introduced in Go 1.16. Although it is still the expected type (alias to fs.PathError),
%T
in Sprintf prints something else.