-
Notifications
You must be signed in to change notification settings - Fork 75
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
Handle replace (old version to other version) #142
Comments
@DarthHater does go list with the Json option give us a more accurate picture?? If it does it still doesn't really give us backwards compibility since everyone had to change the command but maybe that's ok if we start to shift people away from that method ¯_(ツ)_/¯ Maybe that begs the question of maybe Nancy should auto detect what you do and do that stuff internally. Then we can switch to whatever is more accurate and no one has to modify anything. #spitballin |
@zendern I'd love if Nancy could just do everything on it's own, but I have a few thoughts about that:
However, I LOVE the idea of using |
Back to {
"Path": "github.com/gorilla/websocket",
"Version": "v1.4.0",
"Replace": {
"Path": "github.com/gorilla/websocket",
"Version": "v1.4.2",
"Time": "2020-03-19T17:50:51Z",
"GoMod": "/Users/ME/go/pkg/mod/cache/download/github.com/gorilla/websocket/@v/v1.4.2.mod"
},
"Update": {
"Path": "github.com/gorilla/websocket",
"Version": "v1.4.2",
"Time": "2020-03-19T17:50:51Z"
},
"Indirect": true,
"GoMod": "/Users/ME/go/pkg/mod/cache/download/github.com/gorilla/websocket/@v/v1.4.2.mod"
} |
So on the note of auto pilot Nancy....... maybe its an opt in feature. Something like |
We could also try and talk with someone working on Golang and see if there is a potential of at least some stuff being moved from internal out? The other reason to avoid just completely doing shell out to |
👍 on the getting the conversation started on seeing if that is an option. Re: txt file usage.... Yeah that's fine. I think if we did the auto run of go list it would be opt in via another flag so would still be possible to use a text file. Could be overkill to the more I think about it cause it not super hard to just pipe it in yourself but would alliveate the issues from here since we could control what is happening internally. (Or easily switch from no json to json and no one is the wiser) On an unrelated-ish note, Might be worthwhile to detect at least the input type (json, text, dep, etc) and send that along the user agent so we know how it's being used exactly. |
Thanks for creating an issue! Please fill out this form so we can be
sure to have all the information we need, and to minimize back and forth.
In some upstream testing of
hashbrowns
, I noticed that in your go.mod when you:go list -m all now shows:
I have severe doubts that
nancy
handles this properly as of this moment, so you'd report on the old version, rather than the replaced oneBasically just keeping people up to date on what they are actually using!
Not entirely sure. There is a hacky way to do this, and then probably a less hacky way. One idea is to look at the structs, etc... that
go mod
itself uses, and see if we can leverage those for parsing the output similar to what we do withdep
.Fun?!
cc @bhamail / @DarthHater
The text was updated successfully, but these errors were encountered: