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

Go module compatibility #130

Open
lujiajing1126 opened this issue Jun 1, 2024 · 5 comments
Open

Go module compatibility #130

lujiajing1126 opened this issue Jun 1, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@lujiajing1126
Copy link

Describe the bug

With Go install command

$ go install github.com/deb-sig/[email protected]
go: github.com/deb-sig/[email protected]: github.com/deb-sig/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/deb-sig/double-entry-generator/v2")

Additional context

To preserve import compatibility, the go command requires that modules with major version v2 or later use a module path with that major version as the final element. For example, version v2.0.0 of example.com/m must instead use module path example.com/m/v2, and packages in that module would use that path as their import path prefix, as in example.com/m/v2/sub/pkg.

grafana/loki#2826

@lujiajing1126 lujiajing1126 added bug Something isn't working help wanted Extra attention is needed labels Jun 1, 2024
@Triple-Z
Copy link
Member

Triple-Z commented Jun 6, 2024

@gaocegege FYI

@gaocegege
Copy link
Member

Which golang version are you using?

@lujiajing1126
Copy link
Author

Which golang version are you using?

1.22

@gaocegege
Copy link
Member

You can download the binary from https://github.com/deb-sig/double-entry-generator/releases/tag/v2.6.0.

It requires some time to refactor the code.

@gaocegege
Copy link
Member

Current behaviour:

go install github.com/deb-sig/double-entry-generator@latest
go: downloading github.com/deb-sig/double-entry-generator v1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants