Skip to content

Add go.work file #3964

@pellared

Description

@pellared

Go 1.18 release introduced Go Workspaces; some references:

I propose to add a go.work file. The main reason is that I believe some of the contributors are using gopls or/and VSCode

I propose to add only the go.work file for convivence. We would still need to have the replace in go.mod files as:

  1. we need to properly define all require of given module (we are not publishing modules so we need to define all dependencies)
  2. all our existing automation does not rely on Go workspaces and also we should not force to use it. E.g. it is sometimes more convenient to just open the editor for a single module.

Probably the cleanest way would be to automate it in crosslink.

Even the proposal is not accepted then I would like to at least add go.work to .gitignore. I am doing it as the first step as it should not harm anybody.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions