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

[Bug] Go install does not work with new go.mod file #287

Closed
that-ambuj opened this issue Aug 2, 2024 · 2 comments
Closed

[Bug] Go install does not work with new go.mod file #287

that-ambuj opened this issue Aug 2, 2024 · 2 comments

Comments

@that-ambuj
Copy link

What is the problem?

I was just scaffolding a new project with this awesome tool. but the go install command from README.md does not work anymore with the following error:

❯ go install github.com/melkeydev/go-blueprint@latest
go: github.com/melkeydev/go-blueprint@latest (in github.com/melkeydev/go-blueprint@v0.7.5): go.mod:3: invalid go version '1.22.4': must match format 1.23

I'm pretty it's because of mention go patch version in the project's go.mod file.

Operating System

Debian 12

Architecture Version (x86, x64, arm, etc)

x64

Steps to reproduce

Just run the install command from README.md

go install github.com/melkeydev/go-blueprint@latest

Relevant log output

go: github.com/melkeydev/go-blueprint@latest (in github.com/melkeydev/go-blueprint@v0.7.5): go.mod:3: invalid go version '1.22.4': must match format 1.23
@that-ambuj
Copy link
Author

I'm using go version 1.19.3, so it might be a change in go.mod file format. I can't pin it down but for now, install version 0.6 works fine for me.

go install github.com/melkeydev/go-blueprint@v0.6

@Ujstor
Copy link
Collaborator

Ujstor commented Aug 5, 2024

This isn't a bug per se, you're running an outdated Go version. Please update Go to v1.21 or later. You're running Debian and get old packages when using apt. I'm running Debian myself, but the tools I use for development are always up-to-date. Either build from source or download the latest release from the repository.

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

2 participants