wapm-cli icon indicating copy to clipboard operation
wapm-cli copied to clipboard

Wapm update notification doesn't invalidate cache

Open MarkMcCaskey opened this issue 5 years ago • 0 comments

The Wapm update notification will display the wrong thing if the value stored there is out of date.

For example if the value in the $WASMER_DIR/.wapm_update.json is 1.0.0-alpha3 and we're on 1.0.0-beta1, it will say to update to an older version because it's different and we don't invalidate the old value stored there.

We should put a relatively short lifetime on the value stored there to prevent this from happening.

MarkMcCaskey avatar Dec 14 '20 18:12 MarkMcCaskey