-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: put workspace commands under go work
#48256
Comments
And I anticipate that once Maybe this means an app that never be dependency of other modules will only need a |
@complyue, the The |
@bcmills Sorry I haven't went thoroughly through the specs wip, I think I'm still having Haskell's project manifestation grammar in mind and suppose If When more than a few days or more than a couple of personnels are required to work out a feature set with multiple It's quite reasonable in software engineering practice, for some members to make "wip releases" of some |
Pls forgive my laziness to refresh the knowledge myself, by now with I assumed such "out-of-mod" packages are still buildable, and even relative imports can work there. Is that the case or I'm wrong? I mean there are the part of end app source, mapping 1:1 to the end problems, they must adjust to business changes, put them reused will increase the cost for change implementation per business process. So they better never get reused (imported) by other modules, thus also better stay out of any |
@complyue We aren't proposing any change to module mode here. This proposal is just about renaming a command from #45713. #45713 adds a new workspace mode which makes it more convenient to work on a change that affects multiple modules. Module mode still works as it did before, and it will still be necessary to commit and tag releases for multiple modules separately. We're not proposing a solution to that yet.
That hasn't been proposed. Feel free to start a new proposal, but please keep in mind how this would be implemented and what the experience would be like. If there were a command to checkout a module at a given commit into a directory, then add that to
For almost all cases, packages must be inside a module to be buildable. It is possible to build small programs as .go files listed on the command line, but they cannot import anything outside the standard library. Relative imports also are not allowed in module mode. |
Based on the discussion above, this proposal seems like a likely accept. |
go work
No change in consensus, so accepted. 🎉 |
go work
go work
Change https://golang.org/cl/357611 mentions this issue: |
This proposes an amendment to the Workspaces Proposal #45713, that was originally suggested by @jayconrod (with a small tweak from me).
Instead of naming the commands to create and edit
go.work
filesgo mod initwork
andgo mod editwork
, name themgo work init
andgo work edit
. This makes future subcommands (such as the proposedadd
andsync
subcommands) have more clear names.@jayconrod's comment proposed the names
go workspace init
andgo workspace edit
.cc @ianthehat @bcmills
The text was updated successfully, but these errors were encountered: