-
Notifications
You must be signed in to change notification settings - Fork 16
Fix go 1.19 js wrapper issue #19
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 go 1.19 js wrapper issue #19
Conversation
|
This will fix go1.18+, but what about users still on older versions of go, will they suddenly get different behavior? Perhaps it's better to split value into two files and use build-tags so |
|
@ptxmac I'm sorry, I lack details of the former & discontinued Go version. Where I have no clear understanding (and just a personal opinion) is, if support for the older Go version is a strong requirement. I have two things in mind. Regarding a) I can't speak for this project (being just a contributor) but hoping @norunners or @jasikpark or other maintainers could give guidance here. E.g. is there a view on how many releases in the past of Go are supported by a vert release? There could be an answer, that vert would release a "v2" which would be Go1.18+, and for clients using older Go versions, they would not be able to use new releases. Being curious to hear their feedback. Regarding b) I see 15 projects listed by Github using this lib. One could simply check how up-to-date they are. Maybe there are no such users sticking on 1.17 or older ;) |
|
I also haven't looked into what I'm all for removing legacy support, but then maybe it makes sense to upgrade the target in |
|
might be worth adding tests that show the difference in functionality ig? not a maintainer of vert, just interested in seeing go 1.18+ support get off the ground 😃 |
|
Thank you again for the contributions. I'm wondering if this usage of
|
|
I had a look at the original proposal as to why it was removed golang/go#44006 and a proposal to reintroduce parts of it 😄 golang/go#50310 Since there's no longer anything in the |
|
gowebapi/webapi#15 is another project that has transitioned away from it |
|
Alright, I thought about this a bit. The way that this can break consumers is a bit of an edge case, the call would look like |
|
thx for merging this quickly! i'll be excited now to be able to help update withastro/compiler to go 1.19 now that this supports it fuzzing a compiler time :) |
This PR replaces one aspect of the #17 PR.
with Go 1.18, the js.Wrapper is no more available, so I removed it. See https://tip.golang.org/doc/go1.18
This will fix #16