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

Fixup SDK's vet usage to use go vet with build tags #2300

Merged
merged 2 commits into from
Dec 4, 2018

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Nov 24, 2018

Updates the SDK's usage of vet to use go vet instead of go tool vet.
This allows the SDK to pass build tags and packages instead of just
folder paths to the tool.

Fixes SDK's CI test failure with Go Tip.

Removes invalid SQS API integration test that was not being used.

Updates the SDK's usage of vet to use go vet instead of go tool vet.
This allows the SDK to pass build tags and packages instead of just
folder paths to the tool.

Fixes SDK's CI test failure with Go Tip.
@jasdel jasdel self-assigned this Nov 24, 2018
@jasdel jasdel requested a review from xibz November 24, 2018 17:55
Copy link
Member

@JordonPhillips JordonPhillips left a comment

Choose a reason for hiding this comment

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

Running make vet now modifies source:

diff --git a/go.mod b/go.mod
index 7a1bd6e9..7591dced 100644
--- a/go.mod
+++ b/go.mod
@@ -1,5 +1,10 @@
 module github.com/aws/aws-sdk-go
 
 require (
+	github.com/davecgh/go-spew v1.1.1 // indirect
 	github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8
+	github.com/pmezard/go-difflib v1.0.0 // indirect
+	github.com/stretchr/testify v1.2.2
+	golang.org/x/net v0.0.0-20181114220301-adae6a3d119a
+	golang.org/x/text v0.3.0 // indirect
 )
diff --git a/go.sum b/go.sum
index be7628e2..417fa5dd 100644
--- a/go.sum
+++ b/go.sum
@@ -1 +1,12 @@
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 h1:12VvqtR6Aowv3l/EQUlocDHW2Cp4G9WJVH7uyH8QFJE=
 github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a h1:gOpx8G595UYyvj8UK4+OFyY4rx037g3fmfhe5SasG3U=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

@jasdel
Copy link
Contributor Author

jasdel commented Nov 26, 2018

Yeah :/ running any go command will update the go.mod go.sum files on the user's system. These will only add additional testing entries to the module files. Users using the SDK in their applications will not see this change. Only when they are making changes to the SDK it self will their mod file update.

Though it does look like the go.sum is missing the following line:

github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 h1:12VvqtR6Aowv3l/EQUlocDHW2Cp4G9WJVH7uyH8QFJE=

@@ -1,34 +0,0 @@
// +build integration
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this test getting removed?

Copy link
Contributor Author

@jasdel jasdel Dec 3, 2018

Choose a reason for hiding this comment

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

This test never actually was used, and did not compile. The SDK's make integration cmd never executed this unit since it was in the service folder. The test looks to exist in order to test the flatten modeled trait, but this is tested via the SDK's protocol tests.

@jasdel jasdel merged commit 88864eb into aws:master Dec 4, 2018
@jasdel jasdel deleted the fixup/GoTipVetShadow branch December 4, 2018 21:38
@aws-sdk-go-automation aws-sdk-go-automation mentioned this pull request Dec 5, 2018
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.

3 participants