Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-344

Building tools with brew installed go fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      OS X 10.8.4

      It seems that using the brew installed version of go will fail to build the tools:

      [ace@h ~]$ brew install go
      ==> Downloading http://go.googlecode.com/files/go1.0.3.src.tar.gz
      Already downloaded: /Library/Caches/Homebrew/go-1.0.3.tar.gz
      ==> ./make.bash --no-clean
      ==> Caveats
      Bash completion has been installed to:
        /usr/local/etc/bash_completion.d
      
      zsh completion has been installed to:
        /usr/local/share/zsh/site-functions
      ==> Summary
       /usr/local/Cellar/go/1.0.3: 3345 files, 100M, built in 19 seconds
      [ace@h ~]$ cd mongo-tools/
      [ace@h mongo-tools]$ ls
      Godeps                bin                   common                legacy                mongodump             mongoimport           mongostat             set_gopath_windows.sh
      Makefile              bsondump              common.yml            legacy-notes.md       mongoexport           mongooplog            mongotop              vendor
      README.md             build.sh              go.sh                 legacy26              mongofiles            mongorestore          set_gopath.sh         vendor.sh
      [ace@h mongo-tools]$ . set_gopath.sh
      [ace@h mongo-tools]$ mkdir bin
      mkdir: bin: File exists
      [ace@h mongo-tools]$ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
      > go build -o "bin/$i" $i/main/$i.go
      > done
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      .gopath/src/github.com/mongodb/mongo-tools/common/json/decode.go:12:2: no Go source files in /usr/local/Cellar/go/1.0.3/src/pkg/encoding
      [ace@h mongo-tools]$ ls bin/
      [ace@h mongo-tools]$
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.emil@10gen.com Andrew Emil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: