go: go.mod file indicates go 1.19, but maximum version supported by tidy is 1.18
时间: 2024-06-05 21:09:37 浏览: 14
It seems that you have specified the Go version as 1.19 in your `go.mod` file, but the `tidy` command is only able to handle up to version 1.18. This could be because you are using an older version of Go or the `tidy` command.
To resolve this, you can either update your Go version to a newer one that supports 1.19, or you can try updating the `tidy` command to a newer version that supports 1.19. You can also try using the `go mod edit` command to manually update the Go version in your `go.mod` file to 1.18.
Once you have resolved this issue, you should be able to run the `tidy` command without any problems.
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)