-
-
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
Conversation
follow go-gitea#18277 Signed-off-by: a1012112796 <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #18280 +/- ##
=======================================
Coverage ? 45.75%
=======================================
Files ? 831
Lines ? 92204
Branches ? 0
=======================================
Hits ? 42188
Misses ? 43254
Partials ? 6762 Continue to review full report at Codecov.
|
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. |
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.
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. |
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 the same change
...
be it a bugfix or a feature addition
what does the bug fix
or feature addition
refer to ....
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. |
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.
If we use Go Modules, we do not need to check the upstream commit again. This check was required by the committed vendor
directory in my mind.
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 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.
Co-authored-by: wxiaoguang <[email protected]>
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. |
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 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.
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. |
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).
The |
And another one: the |
This
|
Signed-off-by: a1012112796 <[email protected]>
wonder if Lines 1 to 25 in 4d0a72a
|
This reverts commit 4789e70.
I think it's probably obsolete, but this removal can also be done in another PR. |
* giteaoffical/main: Restore propagation of ErrDependenciesLeft (go-gitea#18325) Fix PR comments UI (go-gitea#18323) Make the height of the editor in Review Box smaller (4 lines as GitHub) (go-gitea#18319) Fix commit links on compare page (go-gitea#18310) Update JS dependencies, remove eslint-plugin-github (go-gitea#18317) Add MirrorUpdated field to Repository API type (go-gitea#18267) replace satori/go.uuid with gofrs/uuid (go-gitea#18311) Place inline diff comment dialogs in the 4th column. (go-gitea#18321) Use indirect comparison when showing pull requests (go-gitea#18313) Prevent ambiguous column error in organizations page (go-gitea#18314) Correctly upload LFS files (go-gitea#18316) [skip ci] Updated translations via Crowdin update description about vendoring in CONTRIBUTING.md (go-gitea#18280) Fix CheckRepoStats and reuse it during migration (go-gitea#18264) Minor tweak to tag list (go-gitea#18295)
* update description about vendoring in CONTRIBUTING.md follow go-gitea#18277 Signed-off-by: a1012112796 <[email protected]> * Update CONTRIBUTING.md Co-authored-by: wxiaoguang <[email protected]> * fix and readd test-vendor step * remove vendor from .gitattributes @silverwind * simplify go mod check Signed-off-by: a1012112796 <[email protected]> * Revert "remove vendor from .gitattributes @silverwind" This reverts commit 4789e70. Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: 6543 <[email protected]>
follow #18277
TODO:
Remove golang vendored directory
?