I'm using go mod for my project. If my understanding is right, go.mod and go.sum can be checked in. However, I'm curious to know if I should check in pkg/mod/cache as well
.
Asked
Active
Viewed 196 times
-4

user3587025
- 173
- 1
- 4
- 17
-
3No. That shouldn't even be a subdirectory of your project folder. – Adrian Mar 29 '21 at 20:37
1 Answers
2
Should I checkin pkg/mod/cache to git?
No.
If you want to vendor your dependencies use go mod vendor
.

Volker
- 40,468
- 7
- 81
- 87