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

Building tools with brew installed go fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      OS X 10.8.4

      Description

      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]$

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: