Giter VIP home page Giter VIP logo

Comments (6)

alecthomas avatar alecthomas commented on August 15, 2024 1

gometalinter shouldn't need to do anything to support vendoring. Did you try running with GO_VENDOR=1 gometalinter .?

You will also need to rebuild all the tools with 1.5: gometalinter --update --install --force

from gometalinter.

kaiomagalhaes avatar kaiomagalhaes commented on August 15, 2024 1

For some reason it isn't working on circleci:

machine:
  environment:
    # GOROOT is not set by default
    GOROOT: ""
    GOPATH: "${HOME}/.go_project"
    PATH: "${GOPATH}/bin:${PATH}"
    BUILD_PATH: "${GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}"

dependencies:
  pre:
    - go get github.com/tools/godep
    - go get github.com/alecthomas/gometalinter

  override:
    - mkdir -p ~/.go_project/src/github.com/${CIRCLE_PROJECT_USERNAME}
    - ln -s ${HOME}/${CIRCLE_PROJECT_REPONAME} ${BUILD_PATH}

test:
  pre:
    - cd $BUILD_PATH && gometalinter --install
    - cd $BUILD_PATH && go vet $(go list ./... | grep -v /vendor/)
    - GO_VENDOR=1 cd $BUILD_PATH && gometalinter ./... | grep -v vendor
  override:
    - cd $BUILD_PATH && godep go test -v -race $(go list ./... | grep -v /vendor/)

It is throwing the same message. Any ideas?

from gometalinter.

fugr avatar fugr commented on August 15, 2024

the packages real path is ../vendor/...

client/horus.go:10:2:error: could not import github.com/astaxie/beego (can't find import: github.com/astaxie/beego) (gotype)
client/horus.go:11:2:error: could not import github.com/astaxie/beego/httplib (can't find import: github.com/astaxie/beego/httplib) (gotype)
client/seed.go:11:2:error: could not import github.com/astaxie/beego/httplib (can't find import: github.com/astaxie/beego/httplib) (gotype)
client/horus.go:27:4:error: undeclared name: beego (gotype)
client/horus.go:42:3:error: undeclared name: beego (gotype)
client/horus.go:45:2:error: undeclared name: beego (gotype)
client/horus.go:51:9:error: undeclared name: httplib (gotype)
client/horus.go:71:9:error: undeclared name: httplib (gotype)
client/horus.go:93:9:error: undeclared name: httplib (gotype)
client/seed.go:133:9:error: undeclared name: httplib (gotype)
client/seed.go:156:9:error: undeclared name: httplib (gotype)
client/seed.go:190:9:error: undeclared name: httplib (gotype)
client/seed.go:216:9:error: undeclared name: httplib (gotype)
client/seed.go:242:9:error: undeclared name: httplib (gotype)

from gometalinter.

fugr avatar fugr commented on August 15, 2024

thanks

from gometalinter.

alecthomas avatar alecthomas commented on August 15, 2024

I'm assuming that worked, closing.

from gometalinter.

alecthomas avatar alecthomas commented on August 15, 2024

Actually, reopening to remind me to add it to the README

from gometalinter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.