top | item 32467996

(no title)

m90 | 3 years ago

A package appearing in go.sum does not necessarily mean it's being used. It just means it has been downloaded once, but might have been replaced by some other version at some point.

discuss

order

salmo|3 years ago

This has bitten me before. A security scanner reported a vulnerability from this that was blocking me from my “use X at work” request.

I ended up having to teach the vendor of the tool about go mod.

But if you are publishing a “release” I personally think it is good to tidy that up. Even just to prevent misconceptions. No reason to preserve ancient versions and especially failed library experiments.

omginternets|3 years ago

Is there a safe way to de-bloat go.sum?

m90|3 years ago

Theres go mod tidy, which does exactly that.