core go work sync¶
Sync go.work with modules.
Wrapper around go work sync. Synchronises the workspace's build list back to the workspace modules.
Usage¶
What It Does¶
- Updates each module's go.mod to match the workspace build list
- Ensures all modules use compatible dependency versions
- Run after adding new modules or updating dependencies
Examples¶
When To Use¶
- After running
go getto update a dependency - After adding a new module with
core go work use - When modules have conflicting dependency versions