Skip to content
Easy Go vendoring via git submodule
Go Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_tests #2 +example. Mar 17, 2016
.gitignore
.travis.yml -versions Feb 22, 2017
LICENSE +license. +status. Mar 9, 2016
Makefile
README.md transfer Feb 22, 2017
freeze.go
freeze_test.go

README.md

Easy Go vendoring

git freeze will submodule or subtree all git-package Go imports from ./... into vendor/.

Status

Build Status

Install

	go get github.com/gomatic/git-freeze

Usage

If your GOBIN is also in your PATH, git-freeze will be accessible as:

	git freeze

Help

	Usage:
		-branch string
					Git branch/commit to submodule/subtree. (defaults to the parent's branch)
		-dry-run
					Just print the command but do not run it.
		-force
					Force.
		-list
					Only list the imports that can be frozen.
		-notests
					Do not freeze test-imports.
		-subtree
					Use a subtree instead of a submodule.
		-transitive
					Traverse transitive imports, i.e. vendor/
		-verbose
					More output.

Note

git freeze -transitive will traverse ./..., so running it multiple times will continually freeze transitive dependencies. But, ideally, you do not want to use -transitive since transitive dependencies should be vendored/frozen by the package maintainer.

You can’t perform that action at this time.