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

invalid go version issue #17

Open
tkocou opened this issue Oct 17, 2024 · 3 comments
Open

invalid go version issue #17

tkocou opened this issue Oct 17, 2024 · 3 comments

Comments

@tkocou
Copy link

tkocou commented Oct 17, 2024

I followed the instructions in the README.md. When I attempted the go install github.com/bernardo-bruning/ollama-copilot@latest instruction, I encountered this error: ** go.mod:3: invalid go version '1.22.2': must match format 1.23**
I am not a 'go' expert, so I not sure what exactly the reason for the error. Is it because 'go' expects the version to be 1.23 or is it because 1.22.2 has too many digits?

@Seniorsimo
Copy link

Same problem here

@bernardo-bruning
Copy link
Owner

What version of golang you are using? To check this execute go version and send me.

@lucasburlingham
Copy link

lucasburlingham commented Oct 31, 2024

Not working for me either. Using go version go1.19.8 linux/amd64.

❯ go install github.com/bernardo-bruning/ollama-copilot@latest
go: downloading github.com/bernardo-bruning/ollama-copilot v0.2.0
go: github.com/bernardo-bruning/ollama-copilot@latest (in github.com/bernardo-bruning/[email protected]): 
go.mod:3: invalid go version '1.22.2': must match format 1.23

System info (uname -a): Linux debian 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux

As the root user I installed the latest version from go.dev using the following commands:

wget https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
rm -rf /usr/local/go
tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source $HOME/.profile
go version

The version is still go version go1.19.8 linux/amd64, so the Debian repos are up to date.

Looking at the go repo there's issue number 61888. Also see modfile: use new go version string format in error message.

This seems to be an issue related to the go project, not ollama-copilot.

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