Comments (6)
Hi @ignaci0
go-up does not depend on viper.
What do you mean exactly by:
Do you mind skipping the build process for the examples or removing them for good?
If you import go-up as a dependency in your go.mod file the examples should be automatically ignored.
from go-up.
Hi @ufoscout,
I use docker for builds, while building in docker (using a clean image every time), I get the following error:
/usr/local/go/src/github.com/spf13/viper (from $GOROOT)
/go/src/github.com/spf13/viper (from $GOPATH)
ERROR: Service 'testapp' failed to build: The command '/bin/sh -c go get -d -v ./...' returned a non-zero code: 1
By any reason, the viper example is being built even though I'm importing the library as a dependency for my testapp.
What I did for the time being is to fork the code and to delete the examples. Maybe there are better options out there to handle "examples".
from go-up.
@ignaci0
do you use go modules?
from go-up.
Hi,
I tested it using the following:
module testapp
go 1.13
require github.com/ufoscout/go-up v0.6.0 // indirect
Same result
from go-up.
Ok, got it. The reasoning behind Go modules is sometimes obscure to me.
I moved the examples to a separate repository; this should fix your issue.
@ignaci0 please try version v0.6.1
and let me know.
from go-up.
With version 0.6.1 is working fine!
Thanks @ufoscout
from go-up.
Related Issues (14)
- Update code docs HOT 1
- Update README.md documentation
- Allow comments with # in properties files
- Add properties trim option HOT 1
- Property keys from file should always be trimmed HOT 1
- Should be possible to define a default value for placeholders
- Add GoDoc button HOT 1
- Add codecov info HOT 1
- Add travis build report
- Add "go report" HOT 1
- Add support for VGO
- Documentation not up to date? HOT 2
- Allow same line comments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-up.