readme: update for go modules

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2019-04-04 15:00:35 +02:00 committed by Steven Allen
parent f47ed25a8b
commit 09868574ac

View File

@ -132,29 +132,14 @@ export PATH=$PATH:$GOPATH/bin
#### Download and Compile IPFS
```
$ go get -u -d github.com/ipfs/go-ipfs
$ git https://github.com/ipfs/go-ipfs.git
$ cd $GOPATH/src/github.com/ipfs/go-ipfs
$ cd go-ipfs
$ make install
```
If you are building on FreeBSD instead of `make install` use `gmake install`.
#### Building on less common systems
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 instead of `make install`:
```
$ make install_unsupported
```
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.
#### Troubleshooting
- Separate [instructions are available for building on Windows](docs/windows.md).