Skip to content

Commit

Permalink
Add a make target for updating go module deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
sengi committed Jul 30, 2023
1 parent ff44a5f commit a92b78b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all clean build test lint unit_tests integration_tests start_mongo stop_mongo
.PHONY: all clean build test lint unit_tests integration_tests start_mongo stop_mongo update_deps
.NOTPARALLEL:

TARGET_MODULE := router
Expand Down Expand Up @@ -30,3 +30,6 @@ start_mongo:

stop_mongo:
./mongo.sh stop

update_deps:
go get -t -u ./... && go mod tidy && go mod vendor
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ This project uses [Go Modules](https://github.com/golang/go/wiki/Modules) to ven
1. Update all the dependencies, including test dependencies, in your working copy:

```sh
go get -t -u ./... && go mod tidy && go mod vendor
make update_deps
```

1. Check for any errors and commit.
Expand Down

0 comments on commit a92b78b

Please sign in to comment.