mirror of https://github.com/pulumi/pulumi.git
c408068075
Today we don't send any version information with API requests to the service, so we cannot make breaking changes between versions of the backend API while preserving backwards compatibility. This PR adds a `User-Agent` header with REST requests that sends a CLI version number of "1". If the service were to make a breaking change, it could use this header to determine which response handler to use. (e.g. return a different response for "" or "1" and another for "2".) Obviously we want to avoid being in this situation, but in the event that we need to make a breaking change, we'll need this value. We send the Pulumi version as well, though the SDK will probably rev much more quickly than the backend API client version. Fixes #848 |
||
---|---|---|
.. | ||
cloud | ||
local | ||
state | ||
backend.go | ||
display.go | ||
stack.go | ||
updates.go |