Git Product home page Git Product logo

vend's Introduction

Vend

A small command line utility for fully vendoring module dependencies


Why?

Because Google have a different idea of what vendoring means than the rest of us. If you use the built-in go mod vendor command, it will only cherry pick certain files for inclusion in the vendor folder. This can cause problems when using Cgo because it ignores C files that are not in the package directory. Tests and examples for dependencies are ignored too.

This tool copies the entire dependency tree into the vendor folder like every other package manager does and how every sane developer would expect it to work. It can be used safely in the $GOPATH or elsewhere.

This package expects that the new module system introduced in v1.11 is being used.

What does it do?

This tool fully copies all files from your project's imported dependencies into the vendor folder. This allows you to:

  1. Always have access to all files in your dependencies, even if they go offline
  2. Always be able to build your project on a disconnected computer
  3. Always be able to run the tests or benchmarks for all your dependencies

Supported Go versions

  • v1.11+

Install

$ go get github.com/nomad-software/vend

Usage

$ cd $GOPATH/mypackage
$ vend

Help

Run the following command for help.

$ vend -help

vend's People

Contributors

c00w avatar lespea avatar nomad-software avatar

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.