Skip to content

Commit

Permalink
Document generating graph visualizations golang#975
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark West committed Aug 22, 2017
1 parent a917880 commit 7d31448
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ This happens when a new import is added. Run `dep ensure` to install the missing

As `dep status` suggests, run `dep ensure` to update your lockfile. Then run `dep status` again, and the lock mismatch should go away.

### Graphing dependencies

Generate a visual representation of the dependency tree by piping the output of `dep status -dot` to [graphviz](http://www.graphviz.org/).
```
$ brew install graphviz
$ dep status -dot | dot -T png | open -f -a /Applications/Preview.app
```
<p align="center"><img src="docs/img/StatusGraph.png" width="750"></p>

### Updating dependencies

Updating brings the version of a dependency in `Gopkg.lock` and `vendor/` to the latest version allowed by the constraints in `Gopkg.toml`.
Expand Down
Binary file added docs/img/StatusGraph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d31448

Please sign in to comment.