-
Notifications
You must be signed in to change notification settings - Fork 374
Conversation
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
export GO111MODULE=on \ | ||
go mod tidy && \ | ||
go mod vendor && \ | ||
go mod verify |
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.
Nice. Could you add a check like this to https://github.com/kata-containers/tests/blob/master/.ci/static-checks.sh for repos that are using go modules? Yes, I know the check is already here, but having such a central and PR-gating check will hopefully keep all the repos protected.
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.
@jodh-intel I have finally addressed this after my unexpected interim break.
I have opened a PR in the tests repo to account for go modules.
See: kata-containers/tests#1880
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.
Thanks @amshinde.
@amshinde Is the plan to get runtime moved while we move rest of the repos? In that case, tests repository needs to be bostered to run |
@amshinde, @ganeshmaharaj - please can we document the plan on kata-containers/kata-containers#42 to allow others to understand (and comment on) it. |
Add the go.mod file required for converting runtime to go module. This file is generated with `go mod init` using the existing Gopkg.lock and running a `go build` followed by `go test`. Fixes kata-containers#1331 Signed-off-by: Archana Shinde <[email protected]>
Removing all dep related metadata files and the vendoring from the dep tool. Signed-off-by: Archana Shinde <[email protected]>
Remove any unneeded dependencies with `go mod tidy` Signed-off-by: Archana Shinde <[email protected]>
Provide a make target for developers for generating vendor directory. Signed-off-by: Archana Shinde <[email protected]>
Provide a make target for developers for generating vendor directory. Signed-off-by: Archana Shinde <[email protected]>
/test |
@jodh-intel Will update the issue. |
ping @amshinde |
Hi @amshinde, @jodh-intel! Coming from #1420, I'm sorry to be the one bringing bad news here... Context:
Therefore, I think that this PR should ensure that go modules are not used, except for running |
I think |
That's a temporal solution that will only work as long as go modules are optional. Nevertheless, as commented, this approach would require:
|
@amshinde ping this needs rebase |
@amshinde any updates on this PR? Thx! |
1 similar comment
@amshinde any updates on this PR? Thx! |
I'll revisit this PR this week. |
@amshinde any updates? Thx. Your weekly Kata herder. |
@amshinde ping 😄 |
We should not use the new And kindly ping @amshinde from your Kata Herder this week ;) |
@bergwolf, thanks for acknowledging this point. I've been trying to make it clear for almost a year now.. #1420, #1413. I believe that's the critical issue that is preventing any practical movement towards go modules. |
See #1420 (comment). |
Move from go dep to go modules.
Fixes #1331