Originally posted by **Luocy7** February 6, 2023
install leetgo via [documnet](https://github.com/j178/leetgo#install-via-go) but face this problem:
```shell
~ go install github.com/j178/leetgo@latest
go: downloading github.com/j178/leetgo v0.2.0
go: github.com/j178/leetgo@latest (in github.com/j178/leetgo@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.
```
here is my go env:
```shell
~ go version
go version go1.20 linux/amd64
~ go env GO111MODULE
on
~ go env GOPROXY
https://goproxy.cn
```
i can only install this way:
```shell
git clone git@github.com:j178/leetgo.git
cd leetgo && go install
```
find a similar case in [stackoverflow](https://stackoverflow.com/questions/69807151)
is this a bug or golang limit?
Discussed in https://github.com/j178/leetgo/discussions/105