-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support Go module #42
Comments
Thanks for your time @aofei, do you think we can make this work without updating the v1 branch? Version 1 is out-dated an unsupported and should not be receiving updates. I'm afraid that users with an older Go version might get reverted to version 1 if they don't update their import paths. Additionally, while a new v3 might not be necessary, as import paths need to be updated this is a major breaking change which should bring out a new major version. But I guess we can just ignore that though and keep it on v2...that could work for me. I'm also quite inclined to ignore Go modules as it seems to handle libraries versioned like mine poorly, does it currently not just grab the latest version since there is no EDIT: Let's see what they say: https://www.reddit.com/r/golang/comments/9u9pt6/go_modules_start_at_v2/ |
It seems that the Go module tool has checked out the latest tag (v2.3.4). Since it has a Releasing a new version (maybe In fact, changes to v1 can be ignored. Just need to consider v2.
Emmm, yeah, this will be a very serious consequence...
According to the Modules, section Semantic Import Versioning, it's not a big problem for the Go >= v1.9. But for older versions, seems that they will all fail to run I personally think that changing the import path is acceptable. After all, it's now a problem, and it will still be a problem in the future (even if v3 is released). Or, freeze the master branch (for older Go versions, just like the russross/blackfriday), and only commit new changes to the v2 branch in the future. In this way, nothing will break. But that would be weird. |
This should now be fixed by using the |
Awesome! I believe that you have made a very good choice. Now, I think it's time to fix tdewolff/minify. |
Should be fixed, see https://github.com/tdewolff/minify/releases/tag/v2.3.7!! |
Hi @tdewolff,
I think you misunderstood the solution I mentioned in #41. So I opened this issue.
In fact, we don't need to release
v3
to allow both tdewolff/parse and tdewolff/minify to support the Go module. And the/v2
suffix is mandatory, not optional.Please take a look at the changes I made in my fork (aofei/parse). I tested it and it works fine (for both
v1
andv2
).The changes:
I learned from russross/blackfriday.
The text was updated successfully, but these errors were encountered: