-
Notifications
You must be signed in to change notification settings - Fork 71
Conversation
@terrytangyuan A couple of questions:
@johnugeorge What do you think? |
Yes we would need to run
If it's an existing large codebase, it would take quite some time, especially if developers need to stop developing feature branches and let upgrade go in first (to avoid conflicts during upgrade especially for long-running branches). Even though go modules seem to be recommended, there are quite few use cases and discussions from the community indicating that vendoring isn still needed in the future for quite some time.
Definitely, we could do that if we agree to support them. It's fairly easy to test multiple versions of Go on Travis.
|
Just to add. There are incompatible style changes that have happened in Go 1.11. Because of this, it is difficult to support Go linter in 1.11 and earlier versions together. |
I think it's fine since they are only style changes. I don't see a strong reason to support multiple versions of Go linter though (I believe there are workaround to support them too if we really want to do so, e.g. an example). We can just use a specific version of
|
I'm always running issues with go build like below.
|
I had similar issue earlier and thought that was fixed by the updates on |
@jian-he I think the problem may be caused by the update of the upstream. k8s is updated but the version in go.sum is older. go module will check the version every time we run go build or other commands. |
Thanks everyone. If there’s any objection to this PR, please comment here. |
/lgtm |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* disable nudging for old ps plugin * Update dangerfile.ts Co-authored-by: Alexander Graf <alex@basecamp.tirol>
This is basically the output of
go mod vendor
. Also updated.gitignore
to stop ignoring updates in vendor directories.We may want to consider keeping vendor directories even though go command completely ignores them when using modules. This allows interoperation with older versions of Go, or to ensure that all files used for a build are stored together in a single file tree as mentioned here. Some IDEs might need a vendor directory in order to correctly find the source files as well. It doesn't seem like vendoring is going away as illustrated here based on community feedback. @merlintang also raised a question related to this in #23 where vendor directories might help with compatibility.
Let's discuss this in the PR.
This change is