mhale / smtpd

An SMTP server package written in Go, in the style of the built-in HTTP server.
The Unlicense
404 stars 92 forks source link

Fix go.mod #25

Closed kyeeego closed 3 years ago

kyeeego commented 3 years ago

Hello! I really want to use this package in my project, but there is one major problem: it's impossible to use this package in go.mod file in my project because of package and module different names ("github.com/mhale/smtpd" and "github.com/prologic/smtpd" respectively), so go.mod can't find module to use. Would be awesome if you fixed this!

mhale commented 3 years ago

Sorry about that, it's fixed now.

kyeeego commented 3 years ago

Thank you! But I'm still getting this error when trying to install module into go.mod:

go get package failed: err: exit status 1: stderr: go: finding module for package github.com/mhale/smtpd
go: found github.com/mhale/smtpd in github.com/mhale/smtpd v0.0.0-20210126072446-bc6803176f22
go: github.com/mhale/smtpd: github.com/mhale/smtpd@v0.0.0-20210126072446-bc6803176f22: parsing go.mod:
    module declares its path as: github.com/prologic/smtpd
            but was required as: github.com/mhale/smtpd

I have tried reinstalling your lib, but it still appears. I don't know whose this problem is and how to fix, can you help me please

kyeeego commented 3 years ago

Never mind. I actually didn't delete module at first lol. Now it all works. Thank you again and sorry gor bothering!