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

Error installing #13

Closed
malvinpratama opened this issue Nov 8, 2020 · 6 comments
Closed

Error installing #13

malvinpratama opened this issue Nov 8, 2020 · 6 comments

Comments

@malvinpratama
Copy link

malvinpratama commented Nov 8, 2020

i try to install and i got some error

github.com/go-acme/lego/v3/providers/dns/linodev4
../../../go/pkg/mod/github.com/go-acme/lego/v3@v3.9.0/providers/dns/linodev4/linodev4.go:104:58: undefined: linodego.Version

because of that my project show the error like this

github.com/go-acme/lego/v3@v3.9.0/providers/dns/linodev4/linodev4.go
line 104
undefined: linodego.Version

i think that problem related with this pr
linode/linodego#156

@dreadl0ck
Copy link
Contributor

dreadl0ck commented Nov 9, 2020

Hi there,

thanks for reporting!

Could you please provide the version of go you are using ($ go version) as well as the Operating System you are working on?

Depending on your Go version, make sure Go modules are enabled for your project,
otherwise building simplecert won't work.

You can check if modules have been manually activated with:

$ echo $GO111MODULE

Starting in Go 1.13, module mode will be the default for all development, so it's no longer necessary to set the env var.

@malvinpratama
Copy link
Author

go version
go1.15 darwin/amd64

catalina 10.15.7

i use go mod before i add simplecert and that work fine
but after i add simplecert i got error
github.com/go-acme/lego/v3@v3.9.0/providers/dns/linodev4/linodev4.go
line 104
undefined: linodego.Version

i try to go get again and after I observed it turned out some error like this
github.com/go-acme/lego/v3/providers/dns/linodev4
../../../go/pkg/mod/github.com/go-acme/lego/v3@v3.9.0/providers/dns/linodev4/linodev4.go:104:58: undefined: linodego.Version

first go get i not see the error because i forget about -u -v

@dreadl0ck
Copy link
Contributor

Alright, next you could try to flush your go module cache, maybe something is corrupted there:

$ go clean -modcache

Afterwards try to run go mod tidy from your project root, it will download and check the dependencies of your project:

$ go mod tidy

If it fails, please share the output for further troubleshooting.

@malvinpratama
Copy link
Author

malvinpratama commented Nov 9, 2020

go mod tidy work fine

after that go build / go run get some error

'#' github.com/go-acme/lego/v3/providers/dns/linodev4
../../../go/pkg/mod/github.com/go-acme/lego/v3@v3.9.0/providers/dns/linodev4/linodev4.go:104:58: undefined: linodego.Version

@dreadl0ck
Copy link
Contributor

Hm, that's weird. I'm also unable to reproduce this.

Can you share the output of the go mod tidy after cleaning the module cache?
I need to see which versions of the dependencies are fetched.

Please also share the go.mod file if possible.
Maybe the your project has an indirect dependency that is causing this issue.

@dreadl0ck
Copy link
Contributor

I've updated the lego package to v4, this should resolve your error.

If it did not, please ping me to reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants