Hi,

I would like to ask if there is a functionality similar to apt-mark hold 
(which prevents package from being automatically installed, upgraded or 
removed) in go modules.

The case I have is that after updating a package from 1.2.2 to 1.3.0, a bug 
was introduced which can break the app in some cases edge cases (when 
parsing specific json responses) on runtime.

I want to lock down the version to 1.2.2 and make sure that this package is 
not updated when someone runs go get -u until the bug is fixed.

It seems the replace directive 
https://github.com/golang/go/wiki/Modules#when-should-i-use-the-replace-directive
 provides 
similar functionality:

replace github.com/vendor/package => github.com/vendor/package v1.2.2

Is this the correct way? Is there any other solution?

thank you


-- 
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/4041c73e-c4ec-4614-9321-f306d98bc510%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to