Skip to content
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

Invalid go.mod version #72

Closed
firefart opened this issue Oct 23, 2022 · 1 comment · Fixed by #74
Closed

Invalid go.mod version #72

firefart opened this issue Oct 23, 2022 · 1 comment · Fixed by #74
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@firefart
Copy link

firefart commented Oct 23, 2022

Hi,
trying to build against 1.0.16 throws the following errors:

# github.com/projectdiscovery/retryabledns
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:59:56: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:457:36: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:621:31: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:622:24: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:623:27: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:624:28: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:625:25: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:626:26: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:627:26: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:628:25: implicit function instantiation requires go1.18 or later (-lang was set to go1.14; check go.mod)
../../go/pkg/mod/github.com/projectdiscovery/retryabledns@v1.0.16/client.go:628:25: too many errors

You need to update your go.mod version to 1.18 or 1.19 over here https://github.com/projectdiscovery/retryabledns/blob/master/go.mod#L3 because sliceutil.Dedupe now uses generics

@firefart firefart added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Oct 23, 2022
@ehsandeep ehsandeep linked a pull request Oct 24, 2022 that will close this issue
@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Oct 24, 2022
@ehsandeep
Copy link
Member

thank you @firefart for flagging this, should be fixed by now with #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants