title: Use proxy with Makefile
body: <p>To install ipfs I use these steps :</p>
  
  <pre><code>$ go get -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
  </code></pre>
  
  <p>taken from <a href="https://github.com/ipfs/go-ipfs#build-from-source" rel="nofollow">https://github.com/ipfs/go-ipfs#build-from-source</a></p>
  
  <p>When I execute step <code>make install</code> I receive which appears to be a proxy issue : </p>
  
  <pre><code>ERROR: [1 / 32 ] parallel fetch: failed to fetch package: QmVCe3SNMjkcPgnpFhZs719dheq6xE7gJwjzV7aWcUM4Ms: Post http://v04x.ipfs.io/api/v0/get?arg=QmVCe3SNMjkcPgnpFhZs719dheq6xE7gJwjzV7aWcUM4Ms&amp;encodinERROR: from shell.Get(): &amp;url.Error{Op:"Post", URL:"http://v04x.ipfs.io/api/v0/get?arg=QmeWQMDa5dSdP4n8WDeoY5z8L2EKVqF4ZvK4VEHsLqXsGu&amp;encoding=json&amp;stream-channels=true", Err:(*net.OpError)(0xc820142e60)}
  </code></pre>
  
  <p>as the url <a href="http://v04x.ipfs.io/api/v0/get?arg=QmeWQMDa5dSdP4n8WDeoY5z8L2EKVqF4ZvK4VEHsLqXsGu&amp;encoding=json&amp;stream-channels=true" rel="nofollow">http://v04x.ipfs.io/api/v0/get?arg=QmeWQMDa5dSdP4n8WDeoY5z8L2EKVqF4ZvK4VEHsLqXsGu&amp;encoding=json&amp;stream-channels=true</a> is valid.</p>
  
  <p>The content of Makefile : </p>
  
  <pre><code># Minimum version numbers for software required to build IPFS
  IPFS_MIN_GO_VERSION = 1.5.2
  IPFS_MIN_GX_VERSION = 0.6
  IPFS_MIN_GX_GO_VERSION = 1.1
  
  ifeq ($(TEST_NO_FUSE),1)
    go_test=IPFS_REUSEPORT=false go test -tags nofuse
  else
    go_test=IPFS_REUSEPORT=false go test
  endif
  
  ifeq ($(OS),Windows_NT)
    GOPATH_DELIMITER = ;
  else
    GOPATH_DELIMITER = :
  endif
  
  dist_root=/ipfs/QmUnvqDuRyfe7HJuiMMHv77AMUFnjGyAU28LFPeTYwGmFF
  gx_bin=bin/gx-v0.8.0
  gx-go_bin=bin/gx-go-v1.2.1
  
  # use things in our bin before any other system binaries
  export PATH := bin:$(PATH)
  export IPFS_API ?= v04x.ipfs.io
  
  all: help
  
  godep:
      go get github.com/tools/godep
  
  go_check:
      @bin/check_go_version $(IPFS_MIN_GO_VERSION)
  
  bin/gx-v%:
      @echo "installing gx $(@:bin/gx-%=%)"
      @bin/dist_get ${dist_root} gx $@ $(@:bin/gx-%=%)
      rm -f bin/gx
      ln -s $(@:bin/%=%) bin/gx
  
  bin/gx-go-v%:
      @echo "installing gx-go $(@:bin/gx-go-%=%)"
      @bin/dist_get ${dist_root} gx-go $@ $(@:bin/gx-go-%=%)
      rm -f bin/gx-go
      ln -s $(@:bin/%=%) bin/gx-go
  
  gx_check: ${gx_bin} ${gx-go_bin}
  
  path_check:
      @bin/check_go_path $(realpath $(shell pwd)) $(realpath $(addsuffix /src/github.com/ipfs/go-ipfs,$(subst $(GOPATH_DELIMITER), ,$(GOPATH))))
  
  deps: go_check gx_check path_check
      ${gx_bin} --verbose install --global
  
  # saves/vendors third-party dependencies to Godeps/_workspace
  # -r flag rewrites import paths to use the vendored path
  # ./... performs operation on all packages in tree
  vendor: godep
      godep save -r ./...
  
  install: deps
      make -C cmd/ipfs install
  
  build: deps
      make -C cmd/ipfs build
  
  nofuse: deps
      make -C cmd/ipfs nofuse
  
  clean:
      make -C cmd/ipfs clean
  
  uninstall:
      make -C cmd/ipfs uninstall
  
  PHONY += all help godep gx_check
  PHONY += go_check deps vendor install build nofuse clean uninstall
  
  ##############################################################
  # tests targets
  
  test: test_expensive
  
  test_short: build test_go_short test_sharness_short
  
  test_expensive: build test_go_expensive test_sharness_expensive windows_build_check
  
  test_3node:
      cd test/3nodetest &amp;&amp; make
  
  test_go_short:
      $(go_test) -test.short ./...
  
  test_go_expensive:
      $(go_test) ./...
  
  test_go_race:
      $(go_test) ./... -race
  
  test_sharness_short:
      make -C test/sharness/
  
  test_sharness_expensive:
      TEST_EXPENSIVE=1 make -C test/sharness/
  
  test_all_commits:
      @echo "testing all commits between origin/master..HEAD"
      @echo "WARNING: this will 'git rebase --exec'."
      @test/bin/continueyn
      GIT_EDITOR=true git rebase -i --exec "make test" origin/master
  
  test_all_commits_travis:
      # these are needed because travis.
      # we don't use this yet because it takes way too long.
      git config --global user.email "nemo@ipfs.io"
      git config --global user.name "IPFS BOT"
      git fetch origin master:master
      GIT_EDITOR=true git rebase -i --exec "make test" master
  
  # since we have CI for osx and linux but not windows, this should help
  windows_build_check:
      GOOS=windows GOARCH=amd64 go build -o .test.ipfs.exe ./cmd/ipfs
      rm .test.ipfs.exe
  
  PHONY += test test_short test_expensive
  
  ##############################################################
  # A semi-helpful help message
  
  help:
      @echo 'DEPENDENCY TARGETS:'
      @echo ''
      @echo '  gx_check        - Installs or upgrades gx and gx-go'
      @echo '  deps            - Download dependencies using gx'
      @echo '  vendor          - Create a Godep workspace of 3rd party dependencies'
      @echo ''
      @echo 'BUILD TARGETS:'
      @echo ''
      @echo '  all          - print this help message'
      @echo '  build        - Build binary at ./cmd/ipfs/ipfs'
      @echo '  nofuse       - Build binary with no fuse support'
      @echo '  install      - Build binary and install into $$GOPATH/bin'
  #   @echo '  dist_install - TODO: c.f. ./cmd/ipfs/dist/README.md'
      @echo ''
      @echo 'CLEANING TARGETS:'
      @echo ''
      @echo '  clean        - Remove binary from build directory'
      @echo '  uninstall    - Remove binary from $$GOPATH/bin'
      @echo ''
      @echo 'TESTING TARGETS:'
      @echo ''
      @echo '  test                    - Run expensive tests and Window$$ check'
      @echo '  test_short              - Run short tests and sharness tests'
      @echo '  test_expensive          - Run a few extras'
      @echo '  test_3node'
      @echo '  test_go_short'
      @echo '  test_go_expensive'
      @echo '  test_go_race'
      @echo '  test_sharness_short'
      @echo '  test_sharness_expensive'
      @echo '  test_all_commits'
      @echo "  test_all_commits_travis - DON'T USE: takes way too long"
      @echo '  windows_build_check'
      @echo ''
  
  PHONY += help
  
  .PHONY: $(PHONY)
  </code></pre>
  
  <p><code>go</code> and <code>git</code> proxies appear to be setup correctly as <code>go get -d github.com/ipfs/go-ipfs</code> downloads the go-ipfs repo. </p>
  
  <p>Do I need to set a proxy for <code>shell.Get()</code> ?</p>