buddhamagnet / vendorgodeps

Script conversion from GoDeps to git submodules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VENDORGODEPS

This tool was built to enable the easy migration from the Godeps dependency management tooling to the vendor folder approach mandated by the Go team. The way you get the code into that folder is not mandated, but we use git submodules, so this tool follows suit.

The tool performs the following steps:

  • Reads the contents of the Godeps/godeps.json file.
  • For each dependency, it gets the import path and commit hash.
  • It then proceeds to add each one as a git submodule.
  • If any errors are encountered, the program will list them and exit.
  • If all dependencies have been vendored, the program proceeds to delete the Godeps folder.
  • Bathe in the glory of mandated vendoring.

About

Script conversion from GoDeps to git submodules


Languages

Language:Go 100.0%