• Stars
    star
    159
  • Rank 234,449 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A dependency vendor for Go programs

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

More Repositories

1

meme

A command line utility for creating memes
Go
290
star
2

tkd

GUI toolkit for the D programming language based on Tcl/Tk
D
117
star
3

dunit

Advanced unit testing toolkit for the D programming language
D
62
star
4

go-channel-compendium

Interesting ways of using Go channels by John Graham-Cumming
Go
22
star
5

x11

Bindings to X11 for the D programming language
D
20
star
6

wrend

Bindings to the Wren language for use with the D programming language
D
8
star
7

purebasic-a-beginners-guide

A beginner's guide to computer programming (2006)
PureBasic
7
star
8

etcetera

A common library for D language programs
D
5
star
9

screensaver

A simple Linux screensaver framework
Go
4
star
10

vim-posix

Vim configuration for Posix systems
Vim Script
3
star
11

grope

A small command line utility for finding text in many files
Go
3
star
12

findr

A small command line utility for finding files based on a pattern
Go
3
star
13

bfg

A fast Brainfuck interpreter and compiler written in the Go programming language
Brainfuck
2
star
14

tcltk

Bindings to Tcl/Tk for the D programming language
C
2
star
15

matrix

The Matrix's digital rain in a terminal.
Go
1
star
16

game-of-life

Conway's game of life
Go
1
star
17

bfd

A Brainfuck interpreter written in the D programming language
Brainfuck
1
star
18

retry

A small command line utility for running other command line programs
Go
1
star
19

vscode

Visual Studio Code configuration
Shell
1
star
20

stream

Go
1
star
21

crypt

A command line utility for encrypting and decrypting files
Go
1
star
22

vim-win

Customised Vim for Windows
Vim Script
1
star
23

keylogger

A Linux based keylogger
Go
1
star
24

assert

A testing helper library for Go programs
Go
1
star
25

goat

GUI toolkit for the Go programming language based on Tcl/Tk
Go
1
star