title: AWS CodeBuild golang build fails
body: <p>When I run the following command: <code>- go build -o app</code> I get the following error (for multiple dependencies) : <code>main.go:21:2: cannot find package "github.com/gorilla/mux" in any of:
      /usr/local/go/src/github.com/gorilla/mux (from $GOROOT)
      /go/src/github.com/gorilla/mux (from $GOPATH)
      /codebuild/output/src324986171/src/github.com/gorilla/mux</code></p>
  
  <p>Meaning the codebuild fails. Any idea how I can fix this, or in general where the problem is ?
  Thanks for your help.</p>
  
  <p>EDIT:
  After adding <code>go get ./...</code> to the build I get the following error for all my local packages:<code># cd .; git clone https://github.com/aristotle/dbhelper /go/src/github.com/aristotle/dbhelper
  Cloning into '/go/src/github.com/aristotle/dbhelper'...</code></p>
  
  <p>My buildspec.yml looks like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>version: 0.2
  
  phases:
    install: 
      commands:
        - echo CODEBUILD_SRC_DIR - $CODEBUILD_SRC_DIR
        - echo GOPATH - $GOPATH
        - echo GOROOT - $GOROOT
    build:
      commands:
        - echo Build started on `date`
        - echo Getting packages
        - go get ./...
        - echo Compiling the Go code...
        - go build -o app main.go
    post_build:
      commands:
        - echo Build completed on `date`
  artifacts:
    files:
      - app</code></pre>
  </div>
  </div>
  </p>