Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

add script to check if changes to vendor are valid #102

Merged
merged 1 commit into from
Jan 19, 2017
Merged

add script to check if changes to vendor are valid #102

merged 1 commit into from
Jan 19, 2017

Conversation

jessfraz
Copy link
Contributor

close #101

@jessfraz
Copy link
Contributor Author

jessfraz commented Jan 17, 2017

tested on #97 and it fails, which is correct

@jessfraz
Copy link
Contributor Author

ugh idk why appveyor is testing here

@@ -0,0 +1,48 @@
#!/bin/bash
# Copyright 2009 The Go Authors. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

nit: copyright year?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy paste hehe

if [ ${#files[@]} -gt 0 ]; then
# We run ensure to and see if we have a diff afterwards
go build
./hoard ensure
Copy link
Member

Choose a reason for hiding this comment

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

this is fine for now, but just leaving a note to say that this is exactly the kind of validation that IMO we should have a more direct command for: "does the manifest match the lock? (memo)" "does the lock match vendor?"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

totally i believe status with format should do this

@jessfraz
Copy link
Contributor Author

merging as this is pretty standard and just bash

@jessfraz jessfraz merged commit 06cb0c1 into golang:master Jan 19, 2017
@jessfraz jessfraz deleted the 101-validate-vendor-changes branch January 19, 2017 20:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: test if people update vendor
3 participants