Closed budda closed 8 years ago
Agreed - this should be possible after a move to a new install method (see https://github.com/platformsh/platformsh-cli/pull/338)
A vague plan:
~/.platformsh/cli.conf.yaml
~/.platformsh/cli.conf.yaml
), and perhaps via a commandFor 1., please make it based on a timestamp stored in a file, such as the changelog. Writing a timestamp based on the build time prevents any kind of reproducible build.
Agreed... this could even allow the version's date to be reported in platform --version
.
And yes I should probably be committing a changelog too.
platform
is run)Or maybe not, since it would let you know if you installed then started running platform
a month later. But it would let you have less code... not sure.
I was thinking the two-pronged approach would avoid the annoyance (e.g. from Composer) of warning the user frequently, and avoid the performance impact of checking for updates frequently. And this gives that minor advantage I just mentioned of seeing the version time in platform --version
. There is no regularity in release dates and this lets us keep it that way.
I didn't mean to remove 2 completely, just to remove 1. So you wouldn't
have the annoyance, since the check would still happen once a day. Just
that the first timestamp wouldn't be the last changelog entry's, but the
first time platform
was run.
On Wed, Sep 9, 2015 at 10:33 PM, Patrick Dawkins notifications@github.com wrote:
I was thinking the two-pronged approach would avoid the annoyance (e.g. from Composer) of warning the user frequently, and avoid the performance impact of checking for updates frequently.
— Reply to this email directly or view it on GitHub https://github.com/platformsh/platformsh-cli/issues/339#issuecomment-139037756 .
Florian Margaine
Added in v2.8.1
A lot of popular CLI tools these days report if a newer version of the tool is available when a command is executed.
It would be nice to implement a reminder to upgrade the Platform CLI tool if the current version is old.