Having to run go mod vendor
every time I git checkout <branch>
is annoying.
If I forget, gopls
is unusable, tests cannot be run, and VSCode complains (go: inconsistent vendoring
).
Add a post-checkout hook that will run go mod vendor
in the background every time a branch is checked out.