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

go.mod containing one or more replace directives #42

Closed
smallworlnd opened this issue Sep 13, 2021 · 4 comments
Closed

go.mod containing one or more replace directives #42

smallworlnd opened this issue Sep 13, 2021 · 4 comments

Comments

@smallworlnd
Copy link

Hello,

Running go install github.com/edouardparis/lntop@latest gives me the following error:

go install github.com/edouardparis/lntop@latest: github.com/edouardparis/lntop@v0.2.0
        The go.mod file for the module providing named packages contains one or
        more replace directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.

Go version:
go version go1.16.7 freebsd/amd64

Is this related to the OS, or maybe there's something up with my Go installation?

@edouardparis
Copy link
Owner

Thank you for the issue !

Because of a bug on the etcd versioning, I added a replace in go.mod. b6d1214
see lightningnetwork/lnd#5624
I did not think It would break the go install command.
The replace will be removed by the lnd v0.14 release.
For the moment please use the other method: git clone and go install ./...

@epther
Copy link

epther commented Jan 2, 2022

I ran into the exact same error when trying to update lntop from v0.1.0 to v0.2.0 by running go install github.com/edouardparis/lntop@latest

I attempted to use the other method of "git clone and go install ./..." but another error occurs:

go install ./...
# runtime/cgo
gcc: error: unrecognized command line option '-marm'; did you mean '-fasm'?

Searched around and it looks like it may be a go cross-compiler issue? Is there something wrong with my go installation?

Go version: go version go1.17 linux/arm
Running RaspiBlitz v1.7.0

@barbarix01
Copy link

barbarix01 commented Jan 6, 2022

I got the same errors at the respective installation method:

go install: github.com/edouardparis/lntop@latest (in github.com/edouardparis/lntop@v0.2.0):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.

and

#runtime/cgo
gcc: error: unrecognized command line option '-marm'; did you mean '-fasm'?

@smallworlnd
Copy link
Author

This issue appears fixed for me now, on lnd version 0.14.1-beta and lntop 0.3.1. Thanks!

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

4 participants