I need to use go 1.17.9.
However I need to use a different ( lower ) version of "golang.org/x/net" package, not the one specified in mod file.
- How would I go about it i.e. are there commands to edit go.mod and re-fetch the desired versions ?
- Also why do I not see the version of ""golang.org/x/net" specified in 1.17.9's mod file in here -> https://pkg.go.dev/golang.org/x/net?tab=versions, am I looking at the wrong place ?
EDIT - I do not need it in my modules directly. My code is calling net, which calls x/net vendored into std library and relies on the older version of x/net to work. Specifically here is the change that broke. My code used to passes a "wss" request and the code would return "non-nil" now with this change it returns "nil" sine it only identifies "http" and "https" scheme. https://cs.opensource.google/go/x/net/+/7b1cca2348c07eb09fef635269c8e01611260f9f