Skip to content
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 script to verify go modules to match hashes of all files #1157

Merged

Conversation

katiewasnothere
Copy link
Contributor

This PR addresses an issue found in the CI pipeline in #1146. In that instance, the CI initially failed indicating that the test vendor modules were not up to date, which also led to test failures in the CI.

This was because the Verify-GoModules.ps1 script only validated that the code in the vendor directory of the package was unchanged. It did not, however, validate if the target go.sum file matched the expected one for the code. go mod tidy cleans up unnecessary references by removing their entries in the go.sum file, thereby changing its contents. This could cause the main modules and the test modules to become out of sync.

This PR addresses this issue by validating that all files in the target directory are as expected. This will include the go.mod and go.sum files.

Signed-off-by: Kathryn Baldauf [email protected]

@katiewasnothere katiewasnothere requested a review from a team as a code owner September 9, 2021 20:44
@katiewasnothere
Copy link
Contributor Author

@SeanTAllen

Signed-off-by: Kathryn Baldauf <[email protected]>
@SeanTAllen
Copy link
Contributor

Nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants