go-toolchain

goimports needs to ignore vendor package

最后都变了- 提交于 2019-12-12 11:32:12
问题 I am trying to implement dep in my project. This is all working well but it also adds a vendor directory. I now need to update my tooling to ignore this directory or my vendored packages will be modified or I get false positives of warnings. I am currently using the following tooling: goimports -w go vet go lint These tools are also used in CI. I do want to keep autoformatting using goimports, but I am willing to start using gometalinter. I am not really looking for a solution using grep and