From 4c86543c5bec8b58acfa271676566d325c2632f9 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 22 Feb 2017 22:23:32 +0100 Subject: [PATCH 1/2] make: add install_unsupported License: MIT Signed-off-by: Jakub Sztandera --- Rules.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Rules.mk b/Rules.mk index 72f8cf5ea..4d9d3ad96 100644 --- a/Rules.mk +++ b/Rules.mk @@ -102,6 +102,17 @@ install: $$(DEPS_GO) go install $(go-flags-with-tags) ./cmd/ipfs .PHONY: install +install_unsupported: + @echo "note: this command has yet to be tested to build in the system you are using" + @echo "installing gx" + go get -u github.com/whyrusleeping/gx + go get -u github.com/whyrusleeping/gx-go + @echo downloading dependencies + gx install --global + @echo "installing go-ipfs" + go install ./cmd/ipfs +.PHONY: install_unsupported + uninstall: go clean -i ./cmd/ipfs .PHONY: uninstall From 68db94c3ebaf84495cdab4a71a8806b3606e0e95 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 22 Feb 2017 22:27:26 +0100 Subject: [PATCH 2/2] misc: simplify readme installation instructions License: MIT Signed-off-by: Jakub Sztandera --- README.md | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 29b3f76fa..37d2146f8 100644 --- a/README.md +++ b/README.md @@ -91,21 +91,10 @@ export PATH=$PATH:$GOPATH/bin #### Download and Compile IPFS -go-ipfs differs from the vanilla `go get` flow: it uses -[gx](https://github.com/whyrusleeping/gx)/[gx-go](https://github.com/whyrusleeping/gx-go) -for dependency management. - -First download `go-ipfs` without installing: - ``` $ go get -u -d github.com/ipfs/go-ipfs $ cd $GOPATH/src/github.com/ipfs/go-ipfs -``` - -Then install `go-ipfs` and its dependencies, including `gx` and `gx-go`: - -``` $ make install ``` @@ -113,16 +102,14 @@ $ make install If your operating system isn't officially supported, but you still want to try building ipfs anyways (it should work fine in most cases), you can do the -following: +following instead of `make install`: -- Install gx: `go get -u github.com/whyrusleeping/gx` -- Install gx-go: `go get -u github.com/whyrusleeping/gx-go` -- Fetch ipfs source: `go get -d github.com/ipfs/go-ipfs 2> /dev/null` -- Enter source directory: `cd $GOPATH/src/github.com/ipfs/go-ipfs` -- Install deps: `gx install` -- Install ipfs: `go install ./cmd/ipfs` +``` +$ make install_unsupported +``` -Note: This process may break if [gx](https://github.com/whyrusleeping/gx) or any of its dependencies break as `go get` +Note: This process may break if [gx](https://github.com/whyrusleeping/gx) +(used for dependency management) or any of its dependencies break as `go get` will always select the latest code for every dependency, often resulting in mismatched APIs.