From 79244f8ab3c0b421b0d48120272127e29b967b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20L=C3=B6ffert?= Date: Tue, 14 May 2019 16:43:19 +0200 Subject: [PATCH] add "dep" command to makefile hide vendor in gitignore --- .gitignore | 1 + Makefile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index f47ed53..e0e37da 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *~ /bin/ /pkg/tmp/ +/vendor !.git* diff --git a/Makefile b/Makefile index 063c6f8..ae34959 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ IMAGE=docker-registry.bestbytes.net/contentserver all: build test tag: echo $(TAG) +dep: + go mod download && go mod vendor && go install -i ./vendor/... clean: rm -fv bin/contentserve* build: clean