Giter Site home page Giter Site logo

Viper dependency about go-up HOT 6 CLOSED

ignaci0 avatar ignaci0 commented on August 17, 2024
Viper dependency

from go-up.

Comments (6)

ufoscout avatar ufoscout commented on August 17, 2024

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.

ignaci0 avatar ignaci0 commented on August 17, 2024

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.

ufoscout avatar ufoscout commented on August 17, 2024

@ignaci0
do you use go modules?

from go-up.

ignaci0 avatar ignaci0 commented on August 17, 2024

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.

ufoscout avatar ufoscout commented on August 17, 2024

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.

ignaci0 avatar ignaci0 commented on August 17, 2024

With version 0.6.1 is working fine!

Thanks @ufoscout

from go-up.

Related Issues (14)

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.