chore: add version number to foundryup
#9681
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
In order to more easily let users know they are running an outdated version of
foundryupwe should let users easily check their versionIt will also help us track down issues filed by bug report
On the announcements page we will list the latest version number of
foundryup(https://zerosnacks-add-announcements.foundry-book.pages.dev/announcements#how-do-i-know-which-version-i-have-installed)Solution
--versioncommand to listfoundryup's versionfoundryup --versionas part of the bug reportReordered some commands to surface
updateandversionup topMy proposal is that we use the major / minor version to match the latest stable release version and then increment the patch version for any updates we make after each stable release
Note: in old versions of
foundryupthe--versioncommand was used for the--installfunctionality, this was updated as part of0.3.0. This command will now return the version number specified byFOUNDRYUP_INSTALLER_VERSION, effectively a noop without side effects.If you make an update to
foundryupand you want users to update you should open a PR to bump the version number on the announcements page of the Foundry book here: https://zerosnacks-add-announcements.foundry-book.pages.dev/announcements#how-do-i-know-which-version-i-have-installed