Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipfs update command #169

Closed
jbenet opened this issue Oct 14, 2014 · 0 comments
Closed

ipfs update command #169

jbenet opened this issue Oct 14, 2014 · 0 comments
Labels
help wanted Seeking public contribution on this issue

Comments

@jbenet
Copy link
Member

jbenet commented Oct 14, 2014

As discussed in #30 and #31, IPFS should be a self-updating tool. I think this should happen with:

  • an internal update routine (probably using @inconshreveable's go-update
  • a manual ipfs update command, described below.
  • optional auto-updating.

ipfs update

It should work like this:

# update to a specific (semver) version
> ipfs update <version>
> ipfs update 1.2.3
Your old version was: 1.2.2
Updated to (latest) version: 1.2.3      # (latest) only if actually latest

# update to latest minor/patch version
> ipfs update   # (if newest version is backwards-compatible)
Your old version was: 1.2.2
Updated to latest version: 1.2.3

> ipfs update   # (if newest version is backwards-incompatible)
Your old version was: 1.2.2
Updated to latest (backwards-compatible) version: 1.2.3

Note: There is a newer (backwards-incompatible) version: 2.0.0.
Run with the --latest flag to update to this version.

# update to latest version
> ipfs update latest
Your old version was: 1.2.2
Updated to latest version: 2.0.0

# list available updates, but don't update
> ipfs update check
Your current version: 1.2.2
New version available: 1.2.3

> ipfs update check
Your current version: 1.2.2
New backwards-compatible version available: 1.2.3
New backwards-incompatible version available: 2.0.0

> ipfs update log
# ipfs update log

## 1.2.3

This version includes a few simple bugfixes.

* abcdfre - fixed bug in cmd parsing
* 123abcd - fixed bug in http serve

## 1.2.2

...

Flags (these are nice-to haves, here for doc purposes):

  • --dry-run don't actually do it. go through the motions but don't actually install update. useful for testing. (maybe, not a priority)
  • --key provide a different key for checking signature
  • --ignore-signature don't check signature

The cmd help should be:

  UsageLine: "update [<version>]",
  Short:     "Update the go-ipfs tool",
  Long: `ipfs update [<version>] - Update the go-ipfs tool

    ipfs update           - Update to latest (backwards-compatible) version
    ipfs update latest    - Update to latest version
    ipfs update <version> - Update to a specific version
    ipfs update check     - List new versions available
    ipfs update log       - Shows the update log

This command updates the ipfs tool itself. It downloads new versions from the
internet, checks digital signatures, and takes care of the installation.

`,
This was referenced Oct 14, 2014
@jbenet jbenet added the help wanted Seeking public contribution on this issue label Oct 14, 2014
@cryptix cryptix mentioned this issue Oct 20, 2014
@jbenet jbenet closed this as completed Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue
Projects
None yet
Development

No branches or pull requests

1 participant