go-gomail / gomail

The best way to send emails in Go.
MIT License
4.3k stars 570 forks source link

Unable to install with dep #119

Open lunemec opened 6 years ago

lunemec commented 6 years ago

When you use go dep as dependency manager, it installs gomail version from your Releases (version 2.0.0, git commit 41f3572897373c5538c50a2402db15db079fa4fd) which is from 2016.

There is missing NewDialer method and example from docs does not work.

I'm not sure if this is go deps problem, but you should probably create new release once in a while.

I worked around this by setting latest commit ID in Gopkg.lock.

Thanks

g33klord commented 6 years ago

I am facing same issue. New to golang. help please.

lunemec commented 6 years ago

@g33klord if you use go dep you can write the latest commit ID from this repository in Gopkg.lock file in the gomail section. After you save the file, run dep ensure and you should have the version corresponding to that commit ID.

pedromorgan commented 6 years ago

Note: see #108