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

sync feature #49

Closed
victorb opened this issue Nov 30, 2016 · 2 comments
Closed

sync feature #49

victorb opened this issue Nov 30, 2016 · 2 comments
Labels
kind/enhancement A net-new feature or improvement to an existing feature

Comments

@victorb
Copy link
Member

victorb commented Nov 30, 2016

Inspired by concourse's fly cli, a sync feature (https://concourse.ci/fly-sync.html) that once run against the API (in this case, a ipfs daemon API) would sync the version of the cli to match the version on the API.

$ ipfs id
Incompatible API version!
$ ipfs-update sync /ip4/127.0.0.1/tcp/5001
Checking version of API...
Got version 0.4.3, downloading the right IPFS version
Downloaded! 
$ ipfs id
{
	"ID": "QmZ8pJ4vNP4BSH",
	"PublicKey": "CAASpgIwggEiMA0QOevfKUQWkPDCqyh3hlcCSyUTAgMBAAE=",
	"Addresses": null,
	"AgentVersion": "go-libp2p/3.3.4",
	"ProtocolVersion": "ipfs/0.1.0"
}
@victorb victorb added the kind/enhancement A net-new feature or improvement to an existing feature label Nov 30, 2016
@victorb
Copy link
Member Author

victorb commented Dec 1, 2016

We could also print out a message to use ipfs-update sync if there is an error like what happen here: ipfs/kubo#3452

@whyrusleeping
Copy link
Member

This is a pretty cool idea, 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants