-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Installation of lazygit v0.40.0 using go install
fails due to a replace
directive in the go.mod file.
To Reproduce
Steps to reproduce the behavior:
- Run
go install github.com/jesseduffield/lazygit@latest
- When I do this, the following message appears:
go: github.com/jesseduffield/lazygit@latest (in github.com/jesseduffield/[email protected]):
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.
Expected behavior
I expected lazygit to install successfully.
Version info:
I was able to avoid the issue by running go install github.com/jesseduffield/[email protected]
instead.
Additional context
Per the Go docs (and this other github issue), go install
doesn't work with replace
directives.
I think this might be the source of the problem.
replace github.com/gdamore/tcell/v2 v2.6.0 => github.com/stefanhaller/tcell/v2 v2.6.16
trebinor, jacobmorzinski and cubiquitous
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working