suyashkumar/ssl-proxy

error building

Closed this issue · 3 comments

when type go get or build i get this error : ./main.go:105:16: m.TLSConfig undefined (type *autocert.Manager has no field or method TLSConfig) please help resolve thanks

hi @nsubuga! Did you attempt to build by running make? This will use dep to fetch the right versions of the dependencies based on Gopkg.lock (in this case the right version of golang.org/x/crypto is needed). Also are you using a version of Go >= 1.10 ? Note you also need to have dep installed.

The API for autocert may have changed recently, which I can take a look at. Building this using the instructions in the README (using make and the included Makefile) should work--let me know if it still doesn't. I'll probably include a docker configuration to make builds even easier soon as well.

@nsubuga any updates? If not I'll go ahead and close this issue out soon!

Builds seem to work fine when testing locally, and I've now also provided Docker configurations to reproducibly build across platforms in #14! Closing this out.