Skip to content

Commit 0939ecf

Browse files
committed
Create a Makefile rule instead of burying it in CONTRIBUTING.md
1 parent 894f5ec commit 0939ecf

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ If you update a repo that juju depends on, you will need to recreate
175175
`dependencies.tsv`:
176176

177177
```shell
178-
$ godeps -t $(go list github.com/juju/juju/...) > dependencies.tsv
178+
make rebuild-dependencies.tsv
179179
```
180180

181181

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ format:
8989
simplify:
9090
gofmt -w -l -s .
9191

92+
rebuild-dependencies.tsv: godeps
93+
# godeps invoked this way includes 'github.com/juju/juju' as part of
94+
# the content, which we want to filter out.
95+
# '-t' is not needed on newer versions of godeps, but is still supported.
96+
godeps -t ./... | grep -v "^github.com/juju/juju\s" > dependencies.tsv
97+
9298
# Install packages required to develop Juju and run tests. The stable
9399
# PPA includes the required mongodb-server binaries.
94100
install-dependencies:
@@ -126,4 +132,5 @@ check-deps:
126132
.PHONY: build check install
127133
.PHONY: clean format simplify
128134
.PHONY: install-dependencies
135+
.PHONY: rebuild-dependencies.tsv
129136
.PHONY: check-deps

0 commit comments

Comments
 (0)