[GH-ISSUE #44] Failed to build #12

Closed
opened 2026-02-26 18:32:56 +03:00 by kerem · 5 comments
Owner

Originally created by @sunshine69 on GitHub (Oct 23, 2021).
Original GitHub issue: https://github.com/decke/smtprelay/issues/44

Just go go build . in the root and got

azureuser@stevek-playground 12:50 ~/s/smtprelay master> go mod tidy
go: github.com/chrj/smtpd@v0.3.0 requires
github.com/eaigner/dkim@v0.0.0-20150301120808-6fe4a7ee9cfb: invalid version: git fetch -f origin refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /home/azureuser/go/pkg/mod/cache/vcs/b1a9951edebf25b789a34398ad65880e06631bf718a381c881083257167b44d8: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
go: github.com/chrj/smtpd@v0.3.0 requires
github.com/eaigner/dkim@v0.0.0-20150301120808-6fe4a7ee9cfb: invalid version: git fetch -f origin refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /home/azureuser/go/pkg/mod/cache/vcs/b1a9951edebf25b789a34398ad65880e06631bf718a381c881083257167b44d8: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled

Not having time to look at it though but better the author should make sure it builds nicely, given that it is golang, building mod is pretty much straight forward.

Originally created by @sunshine69 on GitHub (Oct 23, 2021). Original GitHub issue: https://github.com/decke/smtprelay/issues/44 Just go `go build .` in the root and got azureuser@stevek-playground 12:50 ~/s/smtprelay master> go mod tidy go: github.com/chrj/smtpd@v0.3.0 requires github.com/eaigner/dkim@v0.0.0-20150301120808-6fe4a7ee9cfb: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/azureuser/go/pkg/mod/cache/vcs/b1a9951edebf25b789a34398ad65880e06631bf718a381c881083257167b44d8: exit status 128: fatal: could not read Username for 'https://github.com': terminal prompts disabled go: github.com/chrj/smtpd@v0.3.0 requires github.com/eaigner/dkim@v0.0.0-20150301120808-6fe4a7ee9cfb: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/azureuser/go/pkg/mod/cache/vcs/b1a9951edebf25b789a34398ad65880e06631bf718a381c881083257167b44d8: exit status 128: fatal: could not read Username for 'https://github.com': terminal prompts disabled Not having time to look at it though but better the author should make sure it builds nicely, given that it is golang, building mod is pretty much straight forward.
kerem closed this issue 2026-02-26 18:32:57 +03:00
Author
Owner

@JonathonReinhart commented on GitHub (Oct 23, 2021):

the author should make sure it builds nicely, given that it is golang, building mod is pretty much straight forward.

Your "straight forward" pull request is welcome!

<!-- gh-comment-id:950053033 --> @JonathonReinhart commented on GitHub (Oct 23, 2021): > the author should make sure it builds nicely, given that it is golang, building mod is pretty much straight forward. Your "straight forward" pull request is welcome!
Author
Owner

@JonathonReinhart commented on GitHub (Oct 23, 2021):

It looks like https://github.com/eaigner/dkim no longer exists (404). That package is a dependency of the upstream github.com/chrj/smtpd.

There is already a PR upstream (https://github.com/chrj/smtpd/pull/12) to replace the non-existent module.

It's especially unfortunate because dkim is only used by examples/dkim-proxy/main.go which we don't care about here. I wonder if the dependency can be made optional.

<!-- gh-comment-id:950054060 --> @JonathonReinhart commented on GitHub (Oct 23, 2021): It looks like https://github.com/eaigner/dkim no longer exists (404). That package is a dependency of the upstream [`github.com/chrj/smtpd`](https://github.com/chrj/smtpd/blob/v0.3.0/go.mod#L5). There is already a PR upstream (https://github.com/chrj/smtpd/pull/12) to replace the non-existent module. It's especially unfortunate because `dkim` is only used by `examples/dkim-proxy/main.go` which we don't care about here. I wonder if the dependency can be made optional.
Author
Owner

@sunshine69 commented on GitHub (Oct 23, 2021):

the author should make sure it builds nicely, given that it is golang, building mod is pretty much straight forward.

Your "straight forward" pull request is welcome!

lol, I already said - pretty running out of time atm. otherwise I would do.

<!-- gh-comment-id:950064705 --> @sunshine69 commented on GitHub (Oct 23, 2021): > > the author should make sure it builds nicely, given that it is golang, building mod is pretty much straight forward. > > Your "straight forward" pull request is welcome! lol, I already said - pretty running out of time atm. otherwise I would do.
Author
Owner

@decke commented on GitHub (Oct 23, 2021):

The build problem is in smtpd and I don't want to fork it unless really necessary. So it will take some time to resolve this problem.

<!-- gh-comment-id:950087830 --> @decke commented on GitHub (Oct 23, 2021): The build problem is in smtpd and I don't want to fork it unless really necessary. So it will take some time to resolve this problem.
Author
Owner

@alex1989hu commented on GitHub (Nov 6, 2021):

FYI: created a PR https://github.com/chrj/smtpd/pull/13 to address the issue

<!-- gh-comment-id:962506125 --> @alex1989hu commented on GitHub (Nov 6, 2021): FYI: created a PR <https://github.com/chrj/smtpd/pull/13> to address the issue
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/smtprelay#12
No description provided.