-
Notifications
You must be signed in to change notification settings - Fork 158
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
Revert "Replacing crypto/ed25519 with compatible wrapper" #158
Conversation
cf8dca3
to
8faf01a
Compare
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.
Please remove the change to the commit linter. These are shared between Pion projects and we'd like those to stay consistent. Though it might be a bit annoying, we're not going to change them right now.
Aside from that, 50 characters is the expected length of the subject:
The defaults are 50 characters for the summary and 72 characters for the description
The 50 char subject length is annoying, since git generates sometimes longer subjects, e.g. edit: I am starting to get angry against this check… I started to reformat links whick are included in my commit message. |
dbecd48
to
6ee0faf
Compare
Finally. IMO the commit message carries less information than before, but at least the script is happy. This check should be relaxed, it is not even possible to include links to github discussions in the body of the message… Also, offline linting seems complicated. |
This reverts commit 0958495. As discussed here: pion#154 (comment)
ed25519 key support is not available below go 1.13
Codecov Report
@@ Coverage Diff @@
## master #158 +/- ##
==========================================
- Coverage 73.46% 73.34% -0.12%
==========================================
Files 58 58
Lines 3335 3335
==========================================
- Hits 2450 2446 -4
- Misses 618 620 +2
- Partials 267 269 +2
Continue to review full report at Codecov.
|
@rumpelsepp really sorry about the commit message stuff, it is garbage (and my fault :( ) I want to move to Conventional Commits but just haven't had the time. I want to generate changelogs and give users nice commit logs to audit. People have asked for it multiple times. We do need to have the linting because people would push commit with messages like Is having this code in blocking anything/anyone? Currently we have a few users on 1.12, and reverting this will break them again. |
Never mind. It was a bit annoying, but I finally made it. :-)
We could also delay this a bit and e.g. make a policy that the two most recent go versions should be supported. Right now this would mean go 1.13 and 1.12. As go has a pretty well defined release cycle it is also predictable for folks using this library. |
The problem with users currently on Go 1.12 is that we don't actually support them. The reason for #154 as far as I can see is #136, which introduced support for ED25519 but broke Go 1.12 compatibility. CI never caught it, since we don't test on anything but latest stable. This now reverts #154, essentially bringing us back to the state of #136 as far as possible Go 1.12 support goes, basically one month ago. No release has been tagged for any of this, so assuming people aren't tracking master, we're not/yet broken for Go 1.12 users. I think this makes it clear we need to adopt an actual policy here on what to do, b/c we can't keep going back and forth and breaking the library on people like this. The suggestion of supporting both Go 1.12 and Go 1.13, and merging this once Go 1.14 comes out makes sense to me. If people are happy with that we can leave this one open. I'll submit a separate PR to ensure we run CI for the 2 Go versions we support so we can catch this kind of issue before it gets merged in the future. |
From: https://github.com/golang/go/wiki/Go-Release-Cycle#release-maintenance
I'm a monkey. |
nothing to add here :) thanks @rumpelsepp and @daenney for taking time out to maintain/work on this stuff I really appreciate it! It is a good way to end the night reading this thread. I am going to explore moving to GitHub actions (and fixing some of our tech debt around CI) this weekend! I will make a list on the wiki of everything we want. The big ones are a better commit message linter and testing on windows. |
Based on discussions in #158, we've decided to support the latest 2 Go versions, so current release and current release -1. In order to not run the linter twice, limit that to run on the latest version we support.
With Go 1.14 out and the x/crypto/ed25519 wrapper not updated to fallthrough to the stdlib implementation we've decided to drop Go 1.12 supprot and move to stdlib imports entirely. Fixes #158
This reverts commit 0958495.
As discussed here: #154 (comment)