You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This is being discussed in golang/go#44840, it's a problem in golang's module system that people seem to disagree about whether or how it should be solved.
For the time being, the solution seems to be to not use a replace directive for tcell, but import the fork for real. Starting work on this in jesseduffield/gocui#37.
Describe the bug
Installation of lazygit v0.40.0 using
go install
fails due to areplace
directive in the go.mod file.To Reproduce
Steps to reproduce the behavior:
go install github.com/jesseduffield/lazygit@latest
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 withreplace
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
The text was updated successfully, but these errors were encountered: