mirror of
https://github.com/ent/ent.git
synced 2026-04-28 21:50:56 +03:00
doc/md: add -mod=mod to 'go run' commands in documentation (#2881)
https://go.dev/ref/mod#build-commands is the documentation for the -mod flag. It seems that basically -mod=mod is never harmful in ent's case, all it does is tell the go command that it can add ent to the go.mod file if it's not already present
This commit is contained in:
@@ -29,7 +29,7 @@ go get -d entgo.io/ent/cmd/ent
|
||||
```
|
||||
|
||||
```console
|
||||
go run entgo.io/ent/cmd/ent init Todo
|
||||
go run -mod=mod entgo.io/ent/cmd/ent init Todo
|
||||
```
|
||||
|
||||
After installing Ent and running `ent init`, your project directory should look like this:
|
||||
|
||||
Reference in New Issue
Block a user