-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.gopls/imports
Milestone
Description
cmd/goimports and gopls' goimports integration do not select rand/v2 in the following scenario, resulting in a type error:
package main
import (
"fmt"
"math/rand"
)
func main() {
fmt.Println(rand.Perm())
}
https://go.dev/play/p/pNTZiwDiG8F
This issue is related to #58382 and #41800, where the goimports does not prefer a the latest version of a module. However, goimports treats standard library packages differently, and so this bug will require a separate fix.
dmitshur
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.gopls/imports