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

Fix remaining CI failures after Go 1.12.1 Upgrade #5576

Merged
merged 11 commits into from
Mar 29, 2019
Merged

Conversation

hanshasselberg
Copy link
Member

The changes in build-support have been made by @mkeeler. Plus this change: go mod edit -require github.com/hashicorp/mdns@v1.0.1 to pull in the version that builds for arm64.

Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

LGTM

@pearkes
Copy link
Contributor

pearkes commented Mar 28, 2019

It looks like we have a consistently failing tests and some go vet issues after the upgrade based on CI. TestGoDiscoverRegistration in particular. Think we just need to upgrade that to support the mdns provider.

@jefferai
Copy link
Member

go mod edit -require github.com/hashicorp/mdns@v1.0.1

It's fine in this case, but generally speaking you don't want to do this. Use go get github.com/hashicorp/mdns@v1.0.1 instead, and any time you make changes follow with go mod tidy, then inspect before committing.

@mkeeler
Copy link
Member

mkeeler commented Mar 28, 2019

go mod edit -require github.com/hashicorp/mdns@v1.0.1

It's fine in this case, but generally speaking you don't want to do this. Use go get github.com/hashicorp/mdns@v1.0.1 instead, and any time you make changes follow with go mod tidy, then inspect before committing.

Thats totally fine by me but why is go get preferred over go mod edit?

@jefferai
Copy link
Member

From the help output:

The -require=path@version and -droprequire=path flags add and drop a requirement on the given module path and version. Note that -require overrides any existing requirements on path. These flags are mainly for tools that understand the module graph. Users should prefer 'go get path@version' or 'go get path@none', which make other go.mod adjustments as needed to satisfy constraints imposed by other modules.

@pearkes pearkes changed the title fix build Fix remaining CI failures after Go 1.12.1 Upgrade Mar 28, 2019
Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

Just a couple minor requests.

api/connect_ca_test.go Outdated Show resolved Hide resolved
sdk/testutil/retry/retry.go Outdated Show resolved Hide resolved
Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

:shipit:

@hanshasselberg hanshasselberg merged commit ac45b17 into master Mar 29, 2019
@hanshasselberg hanshasselberg deleted the fix_build branch March 29, 2019 15:29
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