99designs / 99designs/gqlgen

Use go.work and workspaces

オープン
#2,879 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
10.8k
フォーク
1.3k
平均マージ
2日 36分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。