-
Notifications
You must be signed in to change notification settings - Fork 229
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 example server #34
Comments
The master branch of go-smtp includes one breaking change (#31) and a new feature (#33) since the latest release. I guess you tried to run the example from the master branch on go-smtp 0.10 (or even 0.9, these ConnectionState errors are suspicious). There is however one real compilation issue caused by a typo (addressed in #35). @emersion, I think we should push code for next release to a separate branch in the future (like, |
There was a small amount of time during which the README hadn't yet been updated...
That's not how Go modules are supposed to work. People using Go modules will use the latest release, not the latest commit. So we should be fine pushing breaking changes to master as long as we release a new major semver next. |
That's not how Go modules are supposed to work. People using Go modules will use the latest release, not the latest commit. So we should be fine pushing breaking changes to master as long as we release a new major semver next.
That's is the problem, people see readme on GitHub from master, godoc shows documentation for master. But when people actually import it - they get different version (latest release).
|
(Edited your comment to fix the quote) Hmm. I wonder how other projects handle this? Really not a fan of having two branches. |
Well, big projects (I checked IFPS and Hugo) seem to use two branches. Smaller ones just ignore these issues. Also, not pushing unstable code to master is better for developers who use GOPATH instead of modules. And yes, there are still valid reasons to not use them (tooling support is immature). |
Just got bit by this. I was using GOPATH then I realized I probably needed to pull master. 🤦♂ |
Since 0.11 has been released, the example should work again |
The text was updated successfully, but these errors were encountered: