pulumi/sdk/go/common
Sean Yeh fd77fa0e32
Improve invalid credentials error message (#17541)
We're seeing this error from esc
([issue](https://github.com/pulumi/esc/issues/401)) which is confusing
because it recommends `pulumi login` when using `esc login`.
Additionally, rerunning `pulumi login` (or `esc login`) as the message
suggests doesn't actually fix anything. I think a better error message
is to suggest fixing or deleting the invalid credentials file - open to
suggestions though

Testing:
```
❯ go run ./cmd/pulumi login
error: could not determine current cloud: failed to read Pulumi credentials file. Please fix or delete invalid credentials file: '/Users/sean/.pulumi/credentials.json': invalid character 'a' looking for beginning of value
exit status 255
```
2024-10-11 19:23:35 +00:00
..
apitype Introduce snapshot metadata (#17430) 2024-09-30 16:45:40 +00:00
channel Send all events to the engine event stream (#14607) 2023-11-20 21:55:59 +00:00
constant Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
diag Show the count of unchanged resources (#17257) 2024-09-17 08:41:53 +00:00
encoding all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
env Enable Copilot link by default (#17293) 2024-09-20 01:15:16 +00:00
promise Add tests to sdk/go/common/promise for coverage (#17197) 2024-09-08 21:07:08 +00:00
resource allow better grpc error messages from Go component providers (#17464) 2024-10-10 07:13:31 +00:00
slice Engine support for remote transforms (#15290) 2024-02-21 16:30:46 +00:00
testing Allow cancelling operations with SIGTERM (#17467) 2024-10-07 13:49:04 +00:00
tokens Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
tools Switch back to `os/user` to get the current user (#17125) 2024-08-31 18:54:35 +00:00
util Write memory profile occasionally when profiling in case of crash/OOM. (#17461) 2024-10-09 07:33:07 +00:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace Improve invalid credentials error message (#17541) 2024-10-11 19:23:35 +00:00