Giter Site home page Giter Site logo

v2 branch about chi HOT 4 CLOSED

go-chi avatar go-chi commented on May 5, 2024
v2 branch

from chi.

Comments (4)

pkieltyka avatar pkieltyka commented on May 5, 2024

I'm not a fan of either gopkg.in or glide. I prefer just normal vendoring (ie. govendor).

I can make a v2 branch that mirrors master if it helps others though. What is required? (can you give me the debrief before I say yes/no), thanks.

from chi.

Scapal avatar Scapal commented on May 5, 2024

Being a junior Gopher, I'm interested in your point of view.
Does using govendor mean that you put the vendor tree in your Git as well?
The purpose of a glide.lockis to avoid that.

from chi.

pkieltyka avatar pkieltyka commented on May 5, 2024

@Scapal a group that is part core and part community is working on a dependency management tool -- here is the draft: https://docs.google.com/document/d/1qnmjwfMmvSCDaY4jxPmLAccaaUI5FfySNE90gB0pTKQ/edit

since Go 1.7, the go cli will recognize packages in a ./vendor folder first then search $GOPATH for depedencies. Look up "go vendoring". The missing part today which the draft above covers and tools like glide and govendor implement is actually fetching and managing the files in ./vendor/

a good approach (like govendor does), is store the lock file in ./vendor/vendor.json

and yes absolutely commit your vendor tree to git. it's actually a very nice experience.

govendor is great, except the cli is kind of awkward because its so powerful. hopefully the guys working on the dep tool above will achieve something very smooth (im confident they will).

from chi.

Scapal avatar Scapal commented on May 5, 2024

The dep tool in the draft mention:

Lockfile and Manifest are two files. Located in the project root.

So it seems their perspective is to only save those in the git and not the whole vendor tree.
It is the same approach used by Composer for PHP and Glide.
Wouldn't it be awkward for an open-source project to include the full dependencies in vendor?

from chi.

Related Issues (20)

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.