-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
update description about vendoring in CONTRIBUTING.md #18280
Changes from 12 commits
dc9a3df
8a6b1d0
620ee47
686e8de
c91dcb9
4789e70
a287e33
74d6f59
dd0cd45
6aef0e8
18c1abb
d61ada4
3f7b3f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,13 +91,12 @@ Here's how to run the test suite: | |
|
||
## Vendoring | ||
|
||
We keep a cached copy of dependencies within the `vendor/` directory, | ||
managing updates via [Modules](https://golang.org/cmd/go/#hdr-Module_maintenance). | ||
We manage dependencies via [Go Modules](https://golang.org/cmd/go/#hdr-Module_maintenance), more details: [go mod](https://go.dev/ref/mod). | ||
|
||
Pull requests should only include `vendor/` updates if they are part of | ||
Pull requests should only include `go.mod`, `go.sum` updates if they are part of | ||
the same change, be it a bugfix or a feature addition. | ||
|
||
The `vendor/` update needs to be justified as part of the PR description, | ||
The `go.mod`, `go.sum` update needs to be justified as part of the PR description, | ||
and must be verified by the reviewers and/or merger to always reference | ||
an existing upstream commit. | ||
Comment on lines
+99
to
101
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we use Go Modules, we do not need to check the upstream commit again. This check was required by the committed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The intent of this paragraph is to require a justification whenever a dependency is added or modified. I think the proposed change is correct. Adding a new dependency previously meant modifying vendor/, go.mod and go.sum. Requiring an explanation when vendor/ was modified implied requiring an explanation when go.mod and go.sum was modified. Now that vendor/ is removed, there is a need to rephrase the requirement. |
||
|
||
|
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.
I can not quite understand the purpose of this description. Maybe it can be simplified. The Go Modules document already contains all information.
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.
/cc @lunny @techknowlogick
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.
I think the proposed change is correct and should remain (see below for the rationale).
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.
The old text was talking about
vendor
directory. But now, that is it talking about?if they are part of the same change
: what is thesame change
...be it a bugfix or a feature addition
what does thebug fix
orfeature addition
refer to ....