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

Too many dependencies #1

Closed
dolmen opened this issue Jun 23, 2024 · 3 comments · Fixed by #2
Closed

Too many dependencies #1

dolmen opened this issue Jun 23, 2024 · 3 comments · Fixed by #2

Comments

@dolmen
Copy link

dolmen commented Jun 23, 2024

Too many dependencies referenced in go.mod.

It would be helpful to move the test suite to a separate Go module in the same repo. Go workspaces might be helpful for development.

@Thiht
Copy link
Owner

Thiht commented Jun 24, 2024

Yeah this is a frustrating problem with go.mod. All the dependencies are actually test-only dependencies, and they won't be pulled on go get or go mod download.

I'm not a fan of changing how the code (and tests) is structured to bypass a shortcoming of the official tooling, so I'd rather keep it this way and wait for updates on golang/go#44743 or golang/go#26955

(I don't close the issue yet because I'm still a bit torn on this)

@Thiht Thiht linked a pull request Jun 24, 2024 that will close this issue
@Thiht Thiht closed this as completed in #2 Jun 24, 2024
@Thiht
Copy link
Owner

Thiht commented Jun 24, 2024

I changed my mind and did the split, having an empty root go.mod is great :D

@komuw
Copy link

komuw commented Oct 1, 2024

An alternative would be to use a tool like https://github.com/komuw/ote.

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 a pull request may close this issue.

3 participants