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 deps and make use of -modfile for tests deps #316

Merged
merged 2 commits into from
Jun 22, 2020
Merged

Conversation

kozlovic
Copy link
Member

Signed-off-by: Ivan Kozlovic ivan@synadia.com

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic marked this pull request as draft June 22, 2020 18:09
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM, minor question.

.travis.yml Outdated
@@ -17,7 +11,6 @@ before_script:
- find . -type f -name "*.go" | grep -v "/pb/" | xargs misspell -error -locale US
- staticcheck ./...
script:
- go test -i -v ./...
- go test -v -race ./...
- go test -v -race -p=1 ./... -modfile go_tests.mod
Copy link
Member

Choose a reason for hiding this comment

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

Still need -p1?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually in this repo we don't because there is a single test package. I can remove.

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic
Copy link
Member Author

@derekcollison @wallyqs @philpennock I think that we could merge this PR even though that puts Go 1.14 as the minimal version... for Travis. That is, a user of this lib will have the proper go.mod for deps needed to build the library, regardless of what Go version they are using.
It's just if the user wants to run the tests and/or not mess up the go.mod while running tests that the user would need the -modfile argument that is only available in Go 1.14+. What do you guys think?

@derekcollison
Copy link
Member

Sounds ok to me.

@kozlovic kozlovic marked this pull request as ready for review June 22, 2020 22:13
@kozlovic kozlovic merged commit 6375fbf into master Jun 22, 2020
@kozlovic kozlovic deleted the update_deps branch June 22, 2020 22:13
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