Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add go.work and remove Gopkg.toml as Go roots #6884

Merged
merged 1 commit into from
Apr 26, 2023

Commits on Apr 26, 2023

  1. add go.work and remove Gopkg.toml as Go roots

    Gopkg.toml was used by dep, Go's original dependency management tool.
    It was an experiment that culminated in official and built-in support
    for Go modules in mid 2018, and dep was deprecated and archived
    in mid 2020 per golang/go#38158.
    
    Now, in 2023, Gopkg.toml files are incredibly rare in actively developed
    Go projects, as people use go.mod with Go modules instead.
    
    While here, also add go.work as a root file, since that is used by
    Go module workspaces, added in Go 1.18 in early 2022.
    gopls or commands like `go build` work inside either go.work or go.mod.
    These two root files are the same ones used by gopls integrations with
    other editors like vim or neovim.
    mvdan committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    6fe6de0 View commit details
    Browse the repository at this point in the history