-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add go.mod to support modules landed in go1.11 #264
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
=======================================
Coverage 84.82% 84.82%
=======================================
Files 9 9
Lines 1364 1364
=======================================
Hits 1157 1157
Misses 206 206
Partials 1 1 Continue to review full report at Codecov.
|
This solve the bug, but if go.mod is added, it has to be updated every time dep is updated @jesseduffield |
Nice job |
I have a few questions:
|
My idea here was to solve this issue and adding module support, I didn't think to switch from dep. Yes we can have both. What I was thinking to have no difference with dep and not having a complicated flow is simply, at the moment to update dep files when you need, delete go module files and redo a init. When you do a init with a dep file, it will use it to create the go mod file. And you can have both yes. |
Fair enough. I don't really consider the original issue to be a bug because it's a matter of a user enabling an experimental feature and then an issue occurring. But if there's minimal overhead I suppose there's no harm (though if we find out it's causing issues I'll just revert to only using dep) Is there some way that we can confirm in CI that a go-get on the repo is possible without it crashing as it does in the original issue? i.e. if Otherwise there's a good chance that we'll forget to do the |
It's still a bug, I guess more and more people will enable modules (as it's going to be the standard) over time and it will crash when they will go get, just an assumption. Yep it's quite easy to have the CI checking something about it but if you don't look at what the CI report you will forget to update it. Only crashing could warn you to do something. |
Could we add a specific step in the CI to fail if that go get step fails? |
yes we can |
@jesseduffield if you can have a look now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Fix #243