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

Use go.work and workspaces #2879

Open
mvestnik opened this issue Jan 14, 2024 · 0 comments
Open

Use go.work and workspaces #2879

mvestnik opened this issue Jan 14, 2024 · 0 comments

Comments

@mvestnik
Copy link

You've chosen a very strange way to install it. The CLI is usually used for such tasks. Example: protoc-gen-go for gRPC.
But to simplify your method, you can use the go.work file.

go work init

Then you need to create the tools directory with tools.go. Then execute go mod init tools and go mod tidy.

Then do the same for the main space and include two workspaces in go.work.

go 1.21.0 

use (
    . 
    tools
) 

This is to separate the dependencies of the application and the generator.

ч.png

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

1 participant