-
Notifications
You must be signed in to change notification settings - Fork 65
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
build: remove Go workspace files #407
Conversation
The go.work file is currently misused[1]; it references standalone tool modules which aren't imported by the kraftkit module. The 'replace' directive inside kraftkit's go.mod file is also superfluous; the entry inside go.work is sufficient for kraftkit to locate the vendored revision. [1]: https://go.dev/ref/mod#workspaces Signed-off-by: Antoine Cotten <[email protected]>
Would this also fix |
@craciunoiuc it might, since the only local module required by kraftkit is git2go, which version is not changing due to manual vendoring. In fact, we could use a simple
|
Okay makes sense Also looked over how |
Workspaces are mainly meant for working on local development versions of modules. Putting these files under version control is against that purpose. For locally vendored modules such as libgit2/git2go, a 'replace' directive inside go.mod is more appropriate. Signed-off-by: Antoine Cotten <[email protected]>
Update: I removed the Go workspace files in a second commit. After reading extensively about this feature, it is clear to me that putting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go.work
(and its byproduct go.work.sum
) are artifacts from creating the vendor/
directory which was previously renamed to third_party/
. This change removes a now unnecessary file (and good riddance!) Thanks a lot!
Approved-by: Alexander Jung [email protected]
Prerequisite checklist
make fmt
on your commit series before opening this PR;Description of changes
The go.work file is currently misused; it references standalone tool modules which aren't imported by the kraftkit module.
The 'replace' directive inside kraftkit's go.mod file is also superfluous; the entry inside go.work is sufficient for kraftkit to locate the vendored revision.
Ref. https://go.dev/ref/mod#workspaces
🙂
Update
Go workspace files removed entirely. See commit message(s) for the rationale.