alecbenson / nulecule-go Goto Github PK
View Code? Open in Web Editor NEWA golang port of the nulecule spec implementation
License: GNU Lesser General Public License v3.0
A golang port of the nulecule spec implementation
License: GNU Lesser General Public License v3.0
It would be ideal to track this issue as we refine how we install and run applications. We're making decisions that affect the user experience and behavior.
projectatomic/atomicapp#142
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
.
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
Hi there, any idea when the OpenShift3 provider will be available? any plan for that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.