Quoth Jérôme LAFORGE:
> I am surprised that go mod tidy doesn't remove all unnecessary
> dependencies from the go.mod.
> 
> It raises some questions:
> - Is it unsafe to do this kind of process to ensure that all unnecessary
> dependencies are removed?
> - Why go mod tidy doesn't remove them?
> - How it can be done with go tools?

I have also been surprised by this behaviour. I'd be keen to hear 
rationale for it, as I (no doubt naively) can't imagine why it isn't 
always the correct decision to remove all unneeded dependencies in 
go.mod when 'go mod tidy' is run. Indeed, I'd say that the name 
'tidy' implies "remove unneeded stuff" more than "add needed stuff".

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/20200414101227.GA636%40mussel.lan.

Reply via email to