[go-nuts] Re: Prevent a package from being updated using go modules

2019-07-21 Thread Pantelis Sampaziotis
Thank you Bryan. On Tuesday, 16 July 2019 18:56:30 UTC+3, Bryan Mills wrote: > > This sort of use-case is pretty much exactly what the exclude directive > is for. > (See https://tip.golang.org/cmd/go/#hdr-The_go_mod_file.) > > In your go.mod file, add a directive like: > > exclude

[go-nuts] Re: Prevent a package from being updated using go modules

2019-07-16 Thread 'Bryan Mills' via golang-nuts
This sort of use-case is pretty much exactly what the exclude directive is for. (See https://tip.golang.org/cmd/go/#hdr-The_go_mod_file.) In your go.mod file, add a directive like: exclude github.com/vendor/package v1.3.0 In the meantime, send a PR or file an issue with