https://github.com/gomatic/git-freeze
Easy Go vendoring via git submodule
https://github.com/gomatic/git-freeze
Last synced: 12 months ago
JSON representation
Easy Go vendoring via git submodule
- Host: GitHub
- URL: https://github.com/gomatic/git-freeze
- Owner: gomatic
- License: mpl-2.0
- Created: 2016-03-07T05:05:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T04:00:51.000Z (over 9 years ago)
- Last Synced: 2025-05-07T23:02:24.132Z (about 1 year ago)
- Language: Go
- Homepage: https://github.com/gomatic/git-freeze
- Size: 14.6 KB
- Stars: 103
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Easy Go vendoring
`git freeze` will submodule or subtree all git-package Go imports from `./...` into `vendor/`.
# Status
[](https://travis-ci.org/gomatic/git-freeze)
## 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.