Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

modules: Verification for go modules #1880

Merged
merged 1 commit into from
Aug 7, 2019
Merged

modules: Verification for go modules #1880

merged 1 commit into from
Aug 7, 2019

Conversation

amshinde
Copy link
Member

While we move to go modules, perform the dep check for repos
that still use dep.
Run go mod verify instead for go modules.
Note, this just verifies the integrity of modules in the local
cache. We would have instead wanted to verify the vendored code
here, but that is still not supported.
golang/go#27348

Fixes #1879

Signed-off-by: Archana Shinde archana.m.shinde@intel.com

While we move to go modules, perform the dep check for repos
that still use dep.
Run `go mod verify` instead for go modules.
Note, this just verifies the integrity of modules in the local
cache. We would have instead wanted to verify the vendored code
here, but that is still not supported.
golang/go#27348

Fixes #1879

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
@amshinde
Copy link
Member Author

/test

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @amshinde.

lgtm

@@ -780,6 +780,17 @@ static_check_vendor()
local vendor_files
local result

# Check if repo has been changed to use go modules
if [ -f "go.mod" ]; then
info "go.mod file found, running go mod verify instead"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: You could define a variable for go.mod to avoid the duplication.

@jodh-intel
Copy link
Contributor

ARM CI fell over with:

01:44:37     Expected
01:44:37         <string>: [    0.000000] systemd[56]: chronyd.service: Failed to set up mount namespacing: No such file or directory
01:44:37         [    0.000000] systemd[56]: chronyd.service: Failed at step NAMESPACE spawning /usr/sbin/chronyd: No such file or directory
01:44:37     to be empty

... which is fixed by kata-containers/osbuilder#339 (so this PR is blocked on that PR :)

Restarted CentOS CI which suffered a network timeout.

@amshinde
Copy link
Member Author

amshinde commented Aug 1, 2019

Thanks @jodh-intel Will rerun ARM CI once that is merged.

@GabyCT
Copy link
Contributor

GabyCT commented Aug 5, 2019

/test

@GabyCT
Copy link
Contributor

GabyCT commented Aug 5, 2019

@amshinde errors in kubernetes tests

@GabyCT
Copy link
Contributor

GabyCT commented Aug 7, 2019

The error on centos was not related with this PR

@GabyCT GabyCT merged commit b776105 into master Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update check_vendor() in .ci/static-checks.sh to deal with go.mod files.
4 participants