Description
Current
We have an install script that:
https://github.com/build-trust/ockam/blob/develop/install.sh
- Downloads an architecture specific ockam release binary, by default for the latest released version on Github.
- Installs the binary to
${install_path}/bin/ockam
an install path, which is by default~/.ockam
- Adds an env file to
${install_path}/env
that sets up$OCKAM_HOME
- Adds
${install_path}/env
to various shell specific rc files like bashrc etc.
We also have a homebrew formula that installs ockam as part of homebrew:
https://github.com/build-trust/homebrew-ockam
We also have some logic in Ockam Command code that tells us there is a new release available:
https://github.com/build-trust/ockam/blob/develop/implementations/rust/ockam/ockam_command/src/upgrade.rs
Desired
Implement ockam uninstall
command which would:
- do the opposite steps of the install script if the install was done using the install script
- run
brew uninstall ockam
if the install was done as part of homebrew
Implement ockam upgrade
command which would:
- Do some pre-upgrade steps
i. for now this can list all running nodes and stop them. - Upgrade the
ockam
command binary with the version suggested in upgrade.json - Do some post-upgrade steps
i. for now this can restart all the nodes that were stopped.
We love helping new contributors!
If you have questions or need help as you work on your first Ockam contribution, please leave a comment on this discussion.
If you're looking for other issues to contribute to, checkout this discussion and labels -
good first issue
or
help wanted
Activity