I cannot make-run the project

For feature requests, please see: Contributing Feature Proposals - Mattermost.

For troubleshooting questions, please post in the following format:

Summary

I have dependency errors when I try to make run the project

Steps to reproduce

I am using MacOS 10.11.5, and I reproduced the steps in Redirect. Steps 1 to 4. The go and node versions the brew installed, were: 1.7.3 and 5.10.1.

Expected behavior

What I expect is that after running make run the platform runs successfully.

Observed behavior

What I observe is this trace instead:

AlturaMac-Juanca:platform dmeza$ make run
Starting docker containers
Running mattermost for development
mkdir -p ./webapp/dist/files
go run -ldflags “-X github.com/mattermost/platform/model.BuildNumber=dev -X ‘github.com/mattermost/platform/model.BuildDate=Thu Nov 24 17:12:38 UTC 2016’ -X github.com/mattermost/platform/model.BuildHash=526c392aad1f486dddb7cc411244f4446cb06a3a -X github.com/mattermost/platform/model.BuildHashEnterprise=none -X github.com/mattermost/platform/model.BuildEnterpriseReady=false” *.go &
Running mattermost client for development
cd ./webapp && /Applications/Xcode.app/Contents/Developer/usr/bin/make run
Running mattermost Webapp for development
npm run run &
AlturaMac-Juanca:platform dmeza$ api/slackimport.go:7:2: cannot find package “archive/zip” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/archive/zip (vendor tree)
/usr/local/Cellar/go/1.7.3/src/archive/zip (from $GOROOT)
/Users/dmeza/go/src/archive/zip (from $GOPATH)
mattermost.go:7:2: cannot find package “bufio” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/bufio (vendor tree)
/usr/local/Cellar/go/1.7.3/src/bufio (from $GOROOT)
/Users/dmeza/go/src/bufio (from $GOPATH)
vendor/github.com/alecthomas/log4go/pattlog.go:6:2: cannot find package “bytes” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/bytes (vendor tree)
/usr/local/Cellar/go/1.7.3/src/bytes (from $GOROOT)
/Users/dmeza/go/src/bytes (from $GOPATH)
vendor/github.com/gorilla/handlers/compress.go:8:2: cannot find package “compress/flate” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/compress/flate (vendor tree)
/usr/local/Cellar/go/1.7.3/src/compress/flate (from $GOROOT)
/Users/dmeza/go/src/compress/flate (from $GOPATH)
vendor/github.com/gorilla/handlers/compress.go:9:2: cannot find package “compress/gzip” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/compress/gzip (vendor tree)
/usr/local/Cellar/go/1.7.3/src/compress/gzip (from $GOROOT)
/Users/dmeza/go/src/compress/gzip (from $GOPATH)
vendor/golang.org/x/image/tiff/reader.go:11:2: cannot find package “compress/zlib” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/compress/zlib (vendor tree)
/usr/local/Cellar/go/1.7.3/src/compress/zlib (from $GOROOT)
/Users/dmeza/go/src/compress/zlib (from $GOPATH)
utils/lru.go:11:2: cannot find package “container/list” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/container/list (vendor tree)
/usr/local/Cellar/go/1.7.3/src/container/list (from $GOROOT)
/Users/dmeza/go/src/container/list (from $GOPATH)
vendor/golang.org/x/net/context/go17.go:10:2: cannot find package “context” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/context (vendor tree)
/usr/local/Cellar/go/1.7.3/src/context (from $GOROOT)
/Users/dmeza/go/src/context (from $GOPATH)
utils/license.go:7:2: cannot find package “crypto” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto (from $GOROOT)
/Users/dmeza/go/src/crypto (from $GOPATH)
store/sql_store.go:7:2: cannot find package “crypto/aes” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/aes (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/aes (from $GOROOT)
/Users/dmeza/go/src/crypto/aes (from $GOPATH)
store/sql_store.go:8:2: cannot find package “crypto/cipher” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/cipher (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/cipher (from $GOROOT)
/Users/dmeza/go/src/crypto/cipher (from $GOPATH)
vendor/github.com/rsc/letsencrypt/lets.go:151:2: cannot find package “crypto/ecdsa” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/github.com/rsc/letsencrypt/vendor/crypto/ecdsa (vendor tree)
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/ecdsa
/usr/local/Cellar/go/1.7.3/src/crypto/ecdsa (from $GOROOT)
/Users/dmeza/go/src/crypto/ecdsa (from $GOPATH)
vendor/github.com/rsc/letsencrypt/lets.go:152:2: cannot find package “crypto/elliptic” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/github.com/rsc/letsencrypt/vendor/crypto/elliptic (vendor tree)
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/elliptic
/usr/local/Cellar/go/1.7.3/src/crypto/elliptic (from $GOROOT)
/Users/dmeza/go/src/crypto/elliptic (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:11:2: cannot find package “crypto/hmac” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/hmac (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/hmac (from $GOROOT)
/Users/dmeza/go/src/crypto/hmac (from $GOPATH)
model/channel_count.go:7:2: cannot find package “crypto/md5” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/md5 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/md5 (from $GOROOT)
/Users/dmeza/go/src/crypto/md5 (from $GOPATH)
vendor/github.com/gorilla/websocket/util.go:8:2: cannot find package “crypto/rand” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/rand (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/rand (from $GOROOT)
/Users/dmeza/go/src/crypto/rand (from $GOPATH)
utils/license.go:9:2: cannot find package “crypto/rsa” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/rsa (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/rsa (from $GOROOT)
/Users/dmeza/go/src/crypto/rsa (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:12:2: cannot find package “crypto/sha1” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/sha1 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/sha1 (from $GOROOT)
/Users/dmeza/go/src/crypto/sha1 (from $GOPATH)
api/file.go:8:2: cannot find package “crypto/sha256” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/sha256 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/sha256 (from $GOROOT)
/Users/dmeza/go/src/crypto/sha256 (from $GOPATH)
store/sql_store.go:12:2: cannot find package “crypto/sha512” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/sha512 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/sha512 (from $GOROOT)
/Users/dmeza/go/src/crypto/sha512 (from $GOPATH)
vendor/golang.org/x/crypto/bcrypt/bcrypt.go:12:2: cannot find package “crypto/subtle” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/subtle (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/subtle (from $GOROOT)
/Users/dmeza/go/src/crypto/subtle (from $GOPATH)
vendor/github.com/go-ldap/ldap/client.go:4:2: cannot find package “crypto/tls” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/tls (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/tls (from $GOROOT)
/Users/dmeza/go/src/crypto/tls (from $GOPATH)
vendor/github.com/lib/pq/conn.go:7:2: cannot find package “crypto/x509” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/x509 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/crypto/x509 (from $GOROOT)
/Users/dmeza/go/src/crypto/x509 (from $GOPATH)
vendor/github.com/rsc/letsencrypt/vendor/github.com/xenolf/lego/acme/crypto.go:11:2: cannot find package “crypto/x509/pkix” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/github.com/rsc/letsencrypt/vendor/crypto/x509/pkix (vendor tree)
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/crypto/x509/pkix
/usr/local/Cellar/go/1.7.3/src/crypto/x509/pkix (from $GOROOT)
/Users/dmeza/go/src/crypto/x509/pkix (from $GOPATH)
api/email_batching.go:7:2: cannot find package “database/sql” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/database/sql (vendor tree)
/usr/local/Cellar/go/1.7.3/src/database/sql (from $GOROOT)
/Users/dmeza/go/src/database/sql (from $GOPATH)
vendor/github.com/go-gorp/gorp/db.go:17:2: cannot find package “database/sql/driver” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/database/sql/driver (vendor tree)
/usr/local/Cellar/go/1.7.3/src/database/sql/driver (from $GOROOT)
/Users/dmeza/go/src/database/sql/driver (from $GOPATH)
vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go:5:2: cannot find package “encoding” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding (from $GOROOT)
/Users/dmeza/go/src/encoding (from $GOPATH)
vendor/golang.org/x/crypto/ocsp/ocsp.go:19:2: cannot find package “encoding/asn1” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding/asn1 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding/asn1 (from $GOROOT)
/Users/dmeza/go/src/encoding/asn1 (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:13:2: cannot find package “encoding/base32” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding/base32 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding/base32 (from $GOROOT)
/Users/dmeza/go/src/encoding/base32 (from $GOPATH)
api/file.go:9:2: cannot find package “encoding/base64” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding/base64 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding/base64 (from $GOROOT)
/Users/dmeza/go/src/encoding/base64 (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:14:2: cannot find package “encoding/binary” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding/binary (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding/binary (from $GOROOT)
/Users/dmeza/go/src/encoding/binary (from $GOPATH)
vendor/github.com/go-ldap/ldap/dn.go:50:2: cannot find package “encoding/hex” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding/hex (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding/hex (from $GOROOT)
/Users/dmeza/go/src/encoding/hex (from $GOPATH)
vendor/github.com/alecthomas/log4go/socklog.go:6:2: cannot find package “encoding/json” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding/json (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding/json (from $GOROOT)
/Users/dmeza/go/src/encoding/json (from $GOPATH)
utils/license.go:13:2: cannot find package “encoding/pem” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding/pem (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding/pem (from $GOROOT)
/Users/dmeza/go/src/encoding/pem (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:6:2: cannot find package “encoding/xml” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/encoding/xml (vendor tree)
/usr/local/Cellar/go/1.7.3/src/encoding/xml (from $GOROOT)
/Users/dmeza/go/src/encoding/xml (from $GOPATH)
vendor/github.com/alecthomas/log4go/log4go.go:49:2: cannot find package “errors” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/errors (vendor tree)
/usr/local/Cellar/go/1.7.3/src/errors (from $GOROOT)
/Users/dmeza/go/src/errors (from $GOPATH)
mattermost.go:8:2: cannot find package “flag” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/flag (vendor tree)
/usr/local/Cellar/go/1.7.3/src/flag (from $GOROOT)
/Users/dmeza/go/src/flag (from $GOPATH)
mattermost.go:9:2: cannot find package “fmt” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/fmt (vendor tree)
/usr/local/Cellar/go/1.7.3/src/fmt (from $GOROOT)
/Users/dmeza/go/src/fmt (from $GOPATH)
vendor/github.com/pborman/uuid/hash.go:10:2: cannot find package “hash” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/hash (vendor tree)
/usr/local/Cellar/go/1.7.3/src/hash (from $GOROOT)
/Users/dmeza/go/src/hash (from $GOPATH)
vendor/github.com/mattermost/rsc/qr/png.go:13:2: cannot find package “hash/crc32” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/hash/crc32 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/hash/crc32 (from $GOROOT)
/Users/dmeza/go/src/hash/crc32 (from $GOPATH)
api/user.go:10:2: cannot find package “hash/fnv” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/hash/fnv (vendor tree)
/usr/local/Cellar/go/1.7.3/src/hash/fnv (from $GOROOT)
/Users/dmeza/go/src/hash/fnv (from $GOPATH)
api/post.go:9:2: cannot find package “html” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/html (vendor tree)
/usr/local/Cellar/go/1.7.3/src/html (from $GOROOT)
/Users/dmeza/go/src/html (from $GOPATH)
utils/html.go:8:2: cannot find package “html/template” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/html/template (vendor tree)
/usr/local/Cellar/go/1.7.3/src/html/template (from $GOROOT)
/Users/dmeza/go/src/html/template (from $GOPATH)
vendor/golang.org/x/image/bmp/reader.go:12:2: cannot find package “image” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/image (vendor tree)
/usr/local/Cellar/go/1.7.3/src/image (from $GOROOT)
/Users/dmeza/go/src/image (from $GOPATH)
vendor/golang.org/x/image/bmp/reader.go:13:2: cannot find package “image/color” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/image/color (vendor tree)
/usr/local/Cellar/go/1.7.3/src/image/color (from $GOROOT)
/Users/dmeza/go/src/image/color (from $GOPATH)
vendor/github.com/golang/freetype/raster/paint.go:11:2: cannot find package “image/draw” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/image/draw (vendor tree)
/usr/local/Cellar/go/1.7.3/src/image/draw (from $GOROOT)
/Users/dmeza/go/src/image/draw (from $GOPATH)
vendor/github.com/disintegration/imaging/helpers.go:15:2: cannot find package “image/gif” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/image/gif (vendor tree)
/usr/local/Cellar/go/1.7.3/src/image/gif (from $GOROOT)
/Users/dmeza/go/src/image/gif (from $GOPATH)
vendor/github.com/disintegration/imaging/helpers.go:16:2: cannot find package “image/jpeg” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/image/jpeg (vendor tree)
/usr/local/Cellar/go/1.7.3/src/image/jpeg (from $GOROOT)
/Users/dmeza/go/src/image/jpeg (from $GOPATH)
vendor/github.com/disintegration/imaging/helpers.go:17:2: cannot find package “image/png” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/image/png (vendor tree)
/usr/local/Cellar/go/1.7.3/src/image/png (from $GOROOT)
/Users/dmeza/go/src/image/png (from $GOPATH)
vendor/github.com/alecthomas/log4go/pattlog.go:8:2: cannot find package “io” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/io (vendor tree)
/usr/local/Cellar/go/1.7.3/src/io (from $GOROOT)
/Users/dmeza/go/src/io (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:8:2: cannot find package “io/ioutil” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/io/ioutil (vendor tree)
/usr/local/Cellar/go/1.7.3/src/io/ioutil (from $GOROOT)
/Users/dmeza/go/src/io/ioutil (from $GOPATH)
vendor/github.com/go-ldap/ldap/add.go:14:2: cannot find package “log” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/log (vendor tree)
/usr/local/Cellar/go/1.7.3/src/log (from $GOROOT)
/Users/dmeza/go/src/log (from $GOPATH)
vendor/gopkg.in/asn1-ber.v1/identifier.go:7:2: cannot find package “math” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/math (vendor tree)
/usr/local/Cellar/go/1.7.3/src/math (from $GOROOT)
/Users/dmeza/go/src/math (from $GOPATH)
vendor/golang.org/x/crypto/ocsp/ocsp.go:21:2: cannot find package “math/big” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/math/big (vendor tree)
/usr/local/Cellar/go/1.7.3/src/math/big (from $GOROOT)
/Users/dmeza/go/src/math/big (from $GOPATH)
vendor/github.com/gorilla/websocket/conn.go:13:2: cannot find package “math/rand” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/math/rand (vendor tree)
/usr/local/Cellar/go/1.7.3/src/math/rand (from $GOROOT)
/Users/dmeza/go/src/math/rand (from $GOPATH)
model/file_info.go:12:2: cannot find package “mime” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/mime (vendor tree)
/usr/local/Cellar/go/1.7.3/src/mime (from $GOROOT)
/Users/dmeza/go/src/mime (from $GOPATH)
model/client.go:12:2: cannot find package “mime/multipart” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/mime/multipart (vendor tree)
/usr/local/Cellar/go/1.7.3/src/mime/multipart (from $GOROOT)
/Users/dmeza/go/src/mime/multipart (from $GOPATH)
vendor/github.com/alecthomas/log4go/socklog.go:8:2: cannot find package “net” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/net (vendor tree)
/usr/local/Cellar/go/1.7.3/src/net (from $GOROOT)
/Users/dmeza/go/src/net (from $GOPATH)
vendor/github.com/gorilla/handlers/canonical.go:4:2: cannot find package “net/http” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/net/http (vendor tree)
/usr/local/Cellar/go/1.7.3/src/net/http (from $GOROOT)
/Users/dmeza/go/src/net/http (from $GOPATH)
vendor/github.com/minio/minio-go/api.go:28:2: cannot find package “net/http/httputil” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/net/http/httputil (vendor tree)
/usr/local/Cellar/go/1.7.3/src/net/http/httputil (from $GOROOT)
/Users/dmeza/go/src/net/http/httputil (from $GOPATH)
api/server.go:10:2: cannot find package “net/http/pprof” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/net/http/pprof (vendor tree)
/usr/local/Cellar/go/1.7.3/src/net/http/pprof (from $GOROOT)
/Users/dmeza/go/src/net/http/pprof (from $GOPATH)
model/utils.go:14:2: cannot find package “net/mail” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/net/mail (vendor tree)
/usr/local/Cellar/go/1.7.3/src/net/mail (from $GOROOT)
/Users/dmeza/go/src/net/mail (from $GOPATH)
utils/mail.go:14:2: cannot find package “net/smtp” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/net/smtp (vendor tree)
/usr/local/Cellar/go/1.7.3/src/net/smtp (from $GOROOT)
/Users/dmeza/go/src/net/smtp (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:16:2: cannot find package “net/url” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/net/url (vendor tree)
/usr/local/Cellar/go/1.7.3/src/net/url (from $GOROOT)
/Users/dmeza/go/src/net/url (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:9:2: cannot find package “os” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/os (vendor tree)
/usr/local/Cellar/go/1.7.3/src/os (from $GOROOT)
/Users/dmeza/go/src/os (from $GOPATH)
mattermost.go:14:2: cannot find package “os/exec” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/os/exec (vendor tree)
/usr/local/Cellar/go/1.7.3/src/os/exec (from $GOROOT)
/Users/dmeza/go/src/os/exec (from $GOPATH)
vendor/github.com/tylerb/graceful/graceful.go:9:2: cannot find package “os/signal” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/os/signal (vendor tree)
/usr/local/Cellar/go/1.7.3/src/os/signal (from $GOROOT)
/Users/dmeza/go/src/os/signal (from $GOPATH)
vendor/github.com/lib/pq/conn.go:17:2: cannot find package “os/user” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/os/user (vendor tree)
/usr/local/Cellar/go/1.7.3/src/os/user (from $GOROOT)
/Users/dmeza/go/src/os/user (from $GOPATH)
vendor/github.com/gorilla/mux/mux.go:11:2: cannot find package “path” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/path (vendor tree)
/usr/local/Cellar/go/1.7.3/src/path (from $GOROOT)
/Users/dmeza/go/src/path (from $GOPATH)
vendor/github.com/disintegration/imaging/helpers.go:20:2: cannot find package “path/filepath” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/path/filepath (vendor tree)
/usr/local/Cellar/go/1.7.3/src/path/filepath (from $GOROOT)
/Users/dmeza/go/src/path/filepath (from $GOPATH)
vendor/gopkg.in/asn1-ber.v1/ber.go:9:2: cannot find package “reflect” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/reflect (vendor tree)
/usr/local/Cellar/go/1.7.3/src/reflect (from $GOROOT)
/Users/dmeza/go/src/reflect (from $GOPATH)
vendor/github.com/gorilla/handlers/proxy_headers.go:5:2: cannot find package “regexp” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/regexp (vendor tree)
/usr/local/Cellar/go/1.7.3/src/regexp (from $GOROOT)
/Users/dmeza/go/src/regexp (from $GOPATH)
vendor/github.com/alecthomas/log4go/log4go.go:52:2: cannot find package “runtime” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/runtime (vendor tree)
/usr/local/Cellar/go/1.7.3/src/runtime (from $GOROOT)
/Users/dmeza/go/src/runtime (from $GOPATH)
vendor/github.com/gorilla/handlers/recovery.go:6:2: cannot find package “runtime/debug” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/runtime/debug (vendor tree)
/usr/local/Cellar/go/1.7.3/src/runtime/debug (from $GOROOT)
/Users/dmeza/go/src/runtime/debug (from $GOPATH)
mattermost.go:17:2: cannot find package “runtime/pprof” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/runtime/pprof (vendor tree)
/usr/local/Cellar/go/1.7.3/src/runtime/pprof (from $GOROOT)
/Users/dmeza/go/src/runtime/pprof (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:17:2: cannot find package “sort” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/sort (vendor tree)
/usr/local/Cellar/go/1.7.3/src/sort (from $GOROOT)
/Users/dmeza/go/src/sort (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:10:2: cannot find package “strconv” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/strconv (vendor tree)
/usr/local/Cellar/go/1.7.3/src/strconv (from $GOROOT)
/Users/dmeza/go/src/strconv (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:11:2: cannot find package “strings” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/strings (vendor tree)
/usr/local/Cellar/go/1.7.3/src/strings (from $GOROOT)
/Users/dmeza/go/src/strings (from $GOPATH)
vendor/github.com/go-ldap/ldap/conn.go:13:2: cannot find package “sync” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/sync (vendor tree)
/usr/local/Cellar/go/1.7.3/src/sync (from $GOROOT)
/Users/dmeza/go/src/sync (from $GOPATH)
vendor/github.com/disintegration/imaging/utils.go:7:2: cannot find package “sync/atomic” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/sync/atomic (vendor tree)
/usr/local/Cellar/go/1.7.3/src/sync/atomic (from $GOROOT)
/Users/dmeza/go/src/sync/atomic (from $GOPATH)
vendor/golang.org/x/sys/unix/env_unix.go:11:8: cannot find package “syscall” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/syscall (vendor tree)
/usr/local/Cellar/go/1.7.3/src/syscall (from $GOROOT)
/Users/dmeza/go/src/syscall (from $GOPATH)
vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go:7:2: cannot find package “text/template” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/text/template (vendor tree)
/usr/local/Cellar/go/1.7.3/src/text/template (from $GOROOT)
/Users/dmeza/go/src/text/template (from $GOPATH)
vendor/github.com/alecthomas/log4go/filelog.go:8:2: cannot find package “time” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/time (vendor tree)
/usr/local/Cellar/go/1.7.3/src/time (from $GOROOT)
/Users/dmeza/go/src/time (from $GOPATH)
vendor/gopkg.in/yaml.v2/sorter.go:5:2: cannot find package “unicode” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/unicode (vendor tree)
/usr/local/Cellar/go/1.7.3/src/unicode (from $GOROOT)
/Users/dmeza/go/src/unicode (from $GOPATH)
vendor/gopkg.in/square/go-jose.v1/json/decode.go:20:2: cannot find package “unicode/utf16” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/unicode/utf16 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/unicode/utf16 (from $GOROOT)
/Users/dmeza/go/src/unicode/utf16 (from $GOPATH)
vendor/github.com/go-ldap/ldap/filter.go:13:2: cannot find package “unicode/utf8” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/unicode/utf8 (vendor tree)
/usr/local/Cellar/go/1.7.3/src/unicode/utf8 (from $GOROOT)
/Users/dmeza/go/src/unicode/utf8 (from $GOPATH)
vendor/golang.org/x/sys/unix/flock.go:11:8: cannot find package “unsafe” in any of:
/Users/dmeza/go/src/github.com/mattermost/platform/vendor/unsafe (vendor tree)
/usr/local/Cellar/go/1.7.3/src/unsafe (from $GOROOT)
/Users/dmeza/go/src/unsafe (from $GOPATH)

I’m not an expert at this, but a similar problem is here: [SOLVED] Developer machine setup failed because of package missing

He solved it by setting GOROOT to /usr/local/Cellar/go/1.7.3/libexec/.