Skip to content

x/tools/gopls/internal/regtest/workspace: TestQuickFix_AddGoWork fails with released go 1.21+ #61307

Closed
@hyangah

Description

@hyangah

Go version go1.21rc2

The behavior of the go command is changing, and the test needs fixing to work with go1.21+.

#### End Gopls Test Logs for "TestQuickFix_AddGoWork/use_all/experimental"
--- FAIL: TestQuickFix_AddGoWork (22.95s)
    --- FAIL: TestQuickFix_AddGoWork/use_b (8.02s)
        --- FAIL: TestQuickFix_AddGoWork/use_b/default (3.05s)
            quickfix_test.go:208: unexpected go.work content:
                --- want
                +++ got
                @@ -1,4 +1,4 @@
                -go 1.21
                +go 1.21rc2
                 
                 use ./b
...
FAIL
FAIL    golang.org/x/tools/gopls/internal/regtest/workspace     233.461s

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions