diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 166d0911..bbce55a8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -118,7 +118,7 @@ tests: ## Updating 3rd party packages 0. Update `glide.yaml`. -0. Run `script/vendor` to update the code in the `vendor` directory. +0. Run `make vendor` to update the code in the `vendor` directory. 0. Commit the change. Git LFS vendors the full source code in the repository. 0. Submit a pull request. diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..d593c16c --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +GLIDE ?= glide + +RM ?= rm -f + +glide.lock : glide.yaml + $(GLIDE) update + +vendor : glide.lock + $(GLIDE) install + $(RM) -r vendor/github.com/ThomsonReutersEikon/go-ntlm/utils + $(RM) -r vendor/github.com/davecgh/go-spew + $(RM) -r vendor/github.com/pmezard/go-difflib diff --git a/script/vendor b/script/vendor deleted file mode 100755 index 8e13269d..00000000 --- a/script/vendor +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -glide update -s -u -glide install -s -u - -rm -rf vendor/github.com/ThomsonReutersEikon/go-ntlm/utils -rm -rf vendor/github.com/davecgh/go-spew -rm -rf vendor/github.com/pmezard/go-difflib