Skip to content

Conversation

abhinav
Copy link
Contributor

@abhinav abhinav commented Mar 18, 2025

Go 1.24 introduced 'tool' directives in go.mod files.
mod currently breaks on any go.mod file with a 'tool' directive:

go.mod:140: unknown directive: tool
could not parse go.mod file
github.com/marwan-at-work/mod.GetModFile
	[..]/github.com/marwan-at-work/[email protected]/mod.go:20

The fix is straightforward: update to latest golang.org/x/mod.

Go 1.24 introduced 'tool' directives in go.mod files.
mod currently breaks on any go.mod file with a 'tool' directive:

```
go.mod:140: unknown directive: tool
could not parse go.mod file
github.com/marwan-at-work/mod.GetModFile
	[..]/github.com/marwan-at-work/[email protected]/mod.go:20
```

The fix is straightforward: update to latest golang.org/x/mod.
Copy link
Owner

@marwan-at-work marwan-at-work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix! A couple of small changes and happy to merge it after.

@abhinav
Copy link
Contributor Author

abhinav commented Mar 18, 2025

Fixed!

@marwan-at-work marwan-at-work merged commit a2cecb4 into marwan-at-work:master Mar 18, 2025
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

Successfully merging this pull request may close these issues.

2 participants