99designs / 99designs/gqlgen

Use go.work and workspaces

未关闭
#2,879 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
10.8k
派生
1.3k
平均合并
2 天 36 分钟
30 天内合并 PR
26

描述

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.

```sh
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.

```sh
go 1.21.0

use (
.
tools
)
```

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

![ч.png](https://github.com/99designs/gqlgen/assets/150515091/ae101123-5b75-46d0-b54c-21833b92ca89)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。