Giter Club home page Giter Club logo

nulecule-go's People

Contributors

alecbenson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nulecule-go's Issues

Could not find Nulecule file error

When I try to install Nulecule application with this tool, it fails with

FATA[0015] Could not find Nulecule file in /vagrant_data/nulecule-go/atomicapp/aaa 
[root@localhost aaa]# ls
application-entity

Obviously atomicgo expects Nulecule to be in current dir, not in application-entity sub dir (which is also current behaviour of Atomic App)

When I cd into the application-entity directory and do atomicgo run it works fine for projectatomic/helloapache.

Weird build experience

If I call make cmd it fails with message

go test -v ./...
main.go:4:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/cli" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/cli (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/cli (from $GOPATH)
cli/command.go:6:2: cannot find package "github.com/Sirupsen/logrus" in any of:
    /usr/lib/golang/src/github.com/Sirupsen/logrus (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/Sirupsen/logrus (from $GOPATH)
cli/general.go:7:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/logging" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/logging (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/logging (from $GOPATH)
cli/install.go:7:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/nulecule" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/nulecule (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/nulecule (from $GOPATH)
container/container.go:5:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/constants" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/constants (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/constants (from $GOPATH)
container/container.go:6:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/utils" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/utils (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/utils (from $GOPATH)
nulecule/install.go:10:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/container" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/container (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/container (from $GOPATH)
nulecule/answers.go:10:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/parser" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/parser (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/parser (from $GOPATH)
nulecule/run.go:8:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/provider" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/provider (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/provider (from $GOPATH)
nulecule/answers.go:12:2: cannot find package "gopkg.in/yaml.v1" in any of:
    /usr/lib/golang/src/gopkg.in/yaml.v1 (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/gopkg.in/yaml.v1 (from $GOPATH)
make: *** [test] Error 1

i.e. target all shouldn't depend on target test as there is nothing to test when you try to build for the first time

Second thing is that when I remove the test dependency from Makedfile, I get this:

go build -o atomicgo .
main.go:4:2: cannot find package "github.com/alecbenson/nulecule-go/atomicapp/cli" in any of:
    /usr/lib/golang/src/github.com/alecbenson/nulecule-go/atomicapp/cli (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/alecbenson/nulecule-go/atomicapp/cli (from $GOPATH)
make: *** [all] Error 1

Doing go get github.com/alecbenson/nulecule-go/atomicapp/cli fixes it, but it feels weird to have to go get the package that is part of the application first..logrus and yaml are pulled just fine.

Last thing is that even when the build passes (after doing go get and go build), make test still fails with

go test -v ./...
src/github.com/Sirupsen/logrus/hooks/airbrake/airbrake.go:8:2: cannot find package "github.com/tobi/airbrake-go" in any of:
    /usr/lib/golang/src/github.com/tobi/airbrake-go (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/tobi/airbrake-go (from $GOPATH)
src/github.com/Sirupsen/logrus/hooks/bugsnag/bugsnag.go:7:2: cannot find package "github.com/bugsnag/bugsnag-go" in any of:
    /usr/lib/golang/src/github.com/bugsnag/bugsnag-go (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/bugsnag/bugsnag-go (from $GOPATH)
src/github.com/Sirupsen/logrus/hooks/sentry/sentry.go:9:2: cannot find package "github.com/getsentry/raven-go" in any of:
    /usr/lib/golang/src/github.com/getsentry/raven-go (from $GOROOT)
    /vagrant_data/nulecule-go/atomicapp/src/github.com/getsentry/raven-go (from $GOPATH)
make: *** [test] Error 1

OpenShift3 Provider

Hi there, any idea when the OpenShift3 provider will be available? any plan for that?

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.