mirror of
https://github.com/ent/ent.git
synced 2026-05-01 15:10:57 +03:00
doc: use go get -d for installation (#2165)
Installing executables with 'go get' in module mode is deprecated.
This commit is contained in:
committed by
GitHub
parent
b1e76d1a05
commit
990684c6c8
@@ -9,7 +9,7 @@ The project comes with a codegen tool called `ent`. In order to install
|
||||
`ent` run the following command:
|
||||
|
||||
```bash
|
||||
go get entgo.io/ent/cmd/ent
|
||||
go get -d entgo.io/ent/cmd/ent
|
||||
```
|
||||
|
||||
## Initialize A New Schema
|
||||
@@ -60,7 +60,7 @@ go mod init <project>
|
||||
And then, re-run the following command in order to add `ent` to your `go.mod` file:
|
||||
|
||||
```console
|
||||
go get entgo.io/ent/cmd/ent
|
||||
go get -d entgo.io/ent/cmd/ent
|
||||
```
|
||||
|
||||
Add a `generate.go` file to your project under `<project>/ent`:
|
||||
|
||||
Reference in New Issue
Block a user