-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viper dependency #13
Comments
Hi @ignaci0 What do you mean exactly by:
If you import go-up as a dependency in your go.mod file the examples should be automatically ignored. |
Hi @ufoscout, I use docker for builds, while building in docker (using a clean image every time), I get the following error:
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". |
@ignaci0 |
Hi, I tested it using the following:
Same result |
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 |
With version 0.6.1 is working fine! Thanks @ufoscout |
Hi,
First of all, nice library!
I've found the following issue while trying to use it from a docker image:
It seems the example is trying to force getting the viper module and I'm using this one because I don't want any viper ;)
Do you mind skipping the build process for the examples or removing them for good?
Thanks
The text was updated successfully, but these errors were encountered: