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

Compliation error #29

Closed
rajarathnabalan opened this issue Mar 12, 2019 · 2 comments
Closed

Compliation error #29

rajarathnabalan opened this issue Mar 12, 2019 · 2 comments
Labels
question Further information is requested

Comments

@rajarathnabalan
Copy link

This error occured when I try to update certmagic

$ go get -u github.com/mholt/certmagic
# github.com/mholt/certmagic
src/github.com/mholt/certmagic/client.go:98:29: cannot use &leUser (type *user) as type "github.com/go-acme/lego/registration".User in argument to lego.NewConfig:
        *user does not implement "github.com/go-acme/lego/registration".User (wrong type for GetRegistration method)
                have GetRegistration() *"github.com/xenolf/lego/registration".Resource
                want GetRegistration() *"github.com/go-acme/lego/registration".Resource
src/github.com/mholt/certmagic/client.go:103:11: cannot use keyType (type "github.com/xenolf/lego/certcrypto".KeyType) as type "github.com/go-acme/lego/certcrypto".KeyType in field value
src/github.com/mholt/certmagic/client.go:128:72: cannot use "github.com/xenolf/lego/registration".RegisterOptions literal (type "github.com/xenolf/lego/registration".RegisterOptions) as type "github.com/go-acme/lego/registration".RegisterOptions in argument to client.Registration.Register
src/github.com/mholt/certmagic/client.go:132:23: cannot use reg (type *"github.com/go-acme/lego/registration".Resource) as type *"github.com/xenolf/lego/registration".Resource in assignment
src/github.com/mholt/certmagic/client.go:200:33: cannot use "github.com/xenolf/lego/challenge".HTTP01 (type "github.com/xenolf/lego/challenge".Type) as type "github.com/go-acme/lego/challenge".Type in argument to c.acmeClient.Challenge.Remove
src/github.com/mholt/certmagic/client.go:203:33: cannot use "github.com/xenolf/lego/challenge".TLSALPN01 (type "github.com/xenolf/lego/challenge".Type) as type "github.com/go-acme/lego/challenge".Type in argument to c.acmeClient.Challenge.Remove
src/github.com/mholt/certmagic/client.go:207:32: cannot use "github.com/xenolf/lego/challenge".HTTP01 (type "github.com/xenolf/lego/challenge".Type) as type "github.com/go-acme/lego/challenge".Type in argument to c.acmeClient.Challenge.Remove
src/github.com/mholt/certmagic/client.go:208:32: cannot use "github.com/xenolf/lego/challenge".TLSALPN01 (type "github.com/xenolf/lego/challenge".Type) as type "github.com/go-acme/lego/challenge".Type in argument to c.acmeClient.Challenge.Remove
src/github.com/mholt/certmagic/client.go:259:54: cannot use request (type "github.com/xenolf/lego/certificate".ObtainRequest) as type "github.com/go-acme/lego/certificate".ObtainRequest in argument to c.acmeClient.Certificate.Obtain
src/github.com/mholt/certmagic/client.go:271:34: cannot use certificate (type *"github.com/go-acme/lego/certificate".Resource) as type *"github.com/xenolf/lego/certificate".Resource in argument to c.config.saveCertResource
src/github.com/mholt/certmagic/client.go:271:34: too many errors
@rajarathnabalan rajarathnabalan added the question Further information is requested label Mar 12, 2019
@wI2L
Copy link

wI2L commented Mar 13, 2019

Related to redirection from xenolf/lego to go-acme/lego. Imports should be rewritten to use the later import path.

@nayzawoo
Copy link

I am using go dep & I solve this problem

 [[constraint]]
  branch = "master"
  name = "github.com/mholt/certmagic"

+ [[override]]
+  name = "github.com/go-acme/lego"
+  branch = "master"

I don't know [[constraint]] is not work for me
when I try dep ensure -add github.com/go-acme/lego dep tools only install old version
github.com/xenolf/lego and I can't build.

@mholt mholt closed this as completed Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants