summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDan Duvall <dduvall@wikimedia.org>2017-11-15 10:54:55 -0800
committerDan Duvall <dduvall@wikimedia.org>2017-11-16 13:02:18 -0800
commit00820cbd6bbcc98321c5a0d279394673425d0783 (patch)
treecc7915d20f368c44823e1ab56b03c2f0cb5ca043 /Makefile
parent3e2708071d7ea71e65792709b798c734415b3a3c (diff)
downloadblubber-00820cbd6bbcc98321c5a0d279394673425d0783.tar.gz
Use dep for dependency management and commit vendor
Summary: Our current lack of dependency management is leading to issues with Debian packaging and risks inconsistent builds. Let's use `dep`, the "official experiment" for go dependency management, and commit the vendor directory which is small enough following a `dep prune`. Fixes T180530 Depends on D881 Test Plan: Run `make` or `go build -v` and examine output to ensure use of `vendor/` packages. Reviewers: thcipriani, Joe, #release-engineering-team Reviewed By: thcipriani, #release-engineering-team Tags: #release-engineering-team Maniphest Tasks: T180530 Differential Revision: https://phabricator.wikimedia.org/D882
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 116e2b9..84d62f7 100644
--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,9 @@ clean:
bin/blubber:
mkdir -p $(dir $(BUILD_DIR))
ln -s $(CURDIR) $(BUILD_DIR)
- cd $(BUILD_DIR) && go get ./...
cd $(BUILD_DIR) && go build -v -i -ldflags "$(GO_LDFLAGS)"
mkdir -p $(CURDIR)/bin && mv $(BUILD_DIR)/blubber $(BINARY)
+ rm -rf $(CURDIR)/.build
.PHONY: all clean