-
Notifications
You must be signed in to change notification settings - Fork 274
Update go.mod and go.sum by test/presubmit-tests.sh #162
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
Merged
knative-prow-robot
merged 1 commit into
knative:master
from
nak3:update-by-presubmit-test
Jun 7, 2019
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 wonder from where these indirect dependencies come from, as we don't change direct dependencies in this PR. Any ideas ?
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'm not exactly sure about the
go mod's mechanism. But I am thinking that following code updates the dependencies.client/vendor/github.com/knative/test-infra/scripts/library.sh
Line 370 in b6a8fa9
When I ran
test/presubmit-tests.sh, the code is updated after this message.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.
Ah, ok. That's probably also why there is an
// indirectcomment which indicates that the dependencies don't come directly by being used in the source. I thought it was only about transitive dependencies but looks like the same mechanism is used for dependencies coming from other sources (like thisgo get).I really wished
go modwould clearly separate the manual declared dependencies (or those suggested by examing the source code) from transitive dependencies, as Maven does.Could we please remove the
// indirectcomment as often during the update I'm removing all// indirectsand letgo modfigure them out a fresh ? At the end, it's a direct dependency anyway for us.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.
Hmm... it looks like it is not possible. Even if we remove the
// indirectcomment manually fromgo.mod, it is added automatically whenever we runtest/presubmit-tests.sh.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.
ok, then may it be like this and I'm fine with the inevitable ;-)
/lgtm