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 install not working - Must match format (WSL) #2661

Closed
Dyst0rti0n opened this issue Apr 3, 2024 · 5 comments
Closed

Go install not working - Must match format (WSL) #2661

Dyst0rti0n opened this issue Apr 3, 2024 · 5 comments
Labels

Comments

@Dyst0rti0n
Copy link

TruffleHog Version

3.72.0

Expected Behavior

When go install is ran - for it to install all go packages and modules necessary.

Actual Behavior

go: errors parsing go.mod:
...trufflehog/go.mod:3: invalid go version '1.23.0': must match format 1.23

Environment

OS: Windows Subsystem for Linux (WSL)
Version: WSL version: 2.1.5.0

Fix

Alter go.mod:3 from go 1.22.0 -> go 1.22

@Dyst0rti0n Dyst0rti0n added the bug label Apr 3, 2024
@rgmz
Copy link
Contributor

rgmz commented Apr 3, 2024

This seems like the exact opposite of #2639, unless I'm missing something. 🤔

@Dyst0rti0n
Copy link
Author

Oh it does indeed, interesting... I wonder if there's a work around

@rgmz
Copy link
Contributor

rgmz commented Apr 4, 2024

Unfortunately, the Go team seems to lock resolved issues, otherwise I would seek clarification about that suggestion.

Is this a known issue? Is there an obvious solution? Idk.

@Dyst0rti0n
Copy link
Author

Unfortunately, the Go team seems to lock resolved issues, otherwise I would seek clarification about that suggestion.

Is this a known issue? Is there an obvious solution? Idk.

The only solution I found was altering the version from 1.22.0 -> 1.22 so I'm not too sure

@rgmz
Copy link
Contributor

rgmz commented Oct 1, 2024

For posterity, this seems to be a frustrating compatibility issue between versions of Go mod. Newer versions want x.x.x, older versions want x.x.

golang/go#63370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants