July 11, 2022•85 words
With the release of Go 1.18, Workspaces allows you to reference local copies of project imports.
Workspaces are convenient when your projects share common dependencies.
Instead of pushing up code to get a new commit hash reference for your import, you can now reference your local copy.
This new ability has simplified development a lot for this scenario.
Thank you to the Go team for delivering such a helpful development capability.
go 1.18 use . replace github.com/myorg/mylib v1.0.1 => ../mylib