-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Go 1.18 release introduced Go Workspaces; some references:
- https://go.dev/doc/tutorial/workspaces
- https://go.dev/blog/get-familiar-with-workspaces
- https://go.dev/ref/mod#workspaces
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:
- we need to properly define all
require
of given module (we are not publishing modules so we need to define all dependencies) - 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
Labels
enhancementNew feature or requestNew feature or request