You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is based on the vgo tour, using cmd/go instead:
cd $(mktemp -d)
mkdir hello
cd hello
go mod init github.com/myitcv/hello
cat <<EOD > hello.go
package main
import (
"fmt"
"rsc.io/quote"
)
func main() {
fmt.Println(quote.Hello())
}
EOD
go mod tidy
go list -m all
go get -u
go list -m all
Now let's assume we want to exclude rsc.io/sampler@v1.99.99:
go mod edit -exclude rsc.io/sampler@v1.99.99
Now we list the available versions:
$ go list -m -versions rsc.io/sampler
go: github.com/myitcv/hello() depends on excluded rsc.io/sampler(v1.99.99) with no newer version available
Hmm. No luck.
Ok, let's try to upgrade across the board:
$go get -u
go: github.com/myitcv/hello() depends on excluded rsc.io/sampler(v1.99.99) with no newer version available
Again, no luck.
Let's try and explicitly put ourselves onto @latest then rinse and repeat the above steps:
$ go mod edit -require rsc.io/sampler@latest
$ go list -m -versions rsc.io/sampler
go: github.com/myitcv/hello() depends on excluded rsc.io/sampler(v1.99.99) with no newer version available
$ go get -u
go: github.com/myitcv/hello() depends on excluded rsc.io/sampler(v1.99.99) with no newer version available
What did you expect to see?
A working build with rsc.io/sampler@v1.99.99 excluded.
What did you see instead?
Per above; not able to effectively exclude rsc.io/sampler@v1.99.99.
Unless I'm missing something, this feels like a regression?
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Per above
What operating system and processor architecture are you using (
go env
)?What did you do?
This is based on the vgo tour, using
cmd/go
instead:Now let's assume we want to exclude
rsc.io/sampler@v1.99.99
:Now we list the available versions:
Hmm. No luck.
Ok, let's try to upgrade across the board:
Again, no luck.
Let's try and explicitly put ourselves onto
@latest
then rinse and repeat the above steps:What did you expect to see?
A working build with
rsc.io/sampler@v1.99.99
excluded.What did you see instead?
Per above; not able to effectively exclude
rsc.io/sampler@v1.99.99
.Unless I'm missing something, this feels like a regression?
/cc @rsc @bcmills
The text was updated successfully, but these errors were encountered: