pulumi/sdk/go/common
Thomas Gummerer e88193aa4f
correct version check when we have a dev version installed (#14954)
When we have a dev version from the dev CLI channel installed, we want
to warn whenever a new version is available, so the users can upgrade.
Do that, and also reduce the amount of time the version information is
cached, since we expect dev versions to be released much more frequently
than regular releases.

This needs https://github.com/pulumi/pulumi-service/pull/17429 to be
merged and deployed first.

Fixes #14641

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [ ] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2023-12-22 16:40:12 +00:00
..
apitype correct version check when we have a dev version installed (#14954) 2023-12-22 16:40:12 +00:00
channel Send all events to the engine event stream (#14607) 2023-11-20 21:55:59 +00:00
constant Send update metadata about update plans 2022-10-12 22:55:59 +01:00
diag [sdk] Update uniseg 2023-05-25 22:24:13 -07:00
encoding all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
env Add option to throw on output toString and toJSON calls (#14811) 2023-12-20 11:43:07 +00:00
promise Use promise rather than `atomic.Value` to record step errors. (#14612) 2023-11-18 19:03:35 +00:00
resource Fix fmt.Errorf from 16d9f4c167 (#14835) 2023-12-12 19:09:19 +00:00
slice Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
testing Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
tokens Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
tools all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
util Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace Adds Pulumi AI integrations with Pulumi New (#14685) 2023-12-20 22:08:09 +00:00