Skip to content

x/website: add clear warning against checking go.work into VCS #62179

@goto1134

Description

@goto1134

Since the original proposal strongly suggests against checking go.work into VCS:

go.work files should not be checked into version control repos containing modules so that the go.work file in a module does not end up overriding the configuration a user created themselves outside of the module. The go.work documentation should contain clear warnings about this.
https://go.googlesource.com/proposal/+/master/design/45713-workspace.md#rationale-the-file

Please add a clear warning against checking go.work into VCS to the documentation here: https://go.dev/ref/mod#go-work-file

This issue is inspired by the following Reddit discussion: https://www.reddit.com/r/golang/comments/15v8i06/why_gowork_file_should_not_be_committed/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions