mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
cmd/ent: fix //go:generate code generation to match go1.16 (#1300)
* doc: fix github link
* doc: fix Link entgo.io -> github.com/ent
* 🎉 first commit
* update go generate style
* doc: update go get to go install
* doc: update versioning with go install
* restore all
* change generate.go content
* add -mod=mod option
* add -mod=mod option
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
|
||||
package ent
|
||||
|
||||
//go:generate go run entgo.io/ent/cmd/ent generate --feature schema/snapshot,privacy --header "// Copyright 2019-present Facebook Inc. All rights reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema
|
||||
//go:generate go run -mod=mod entgo.io/ent/cmd/ent generate --feature schema/snapshot,privacy --header "// Copyright 2019-present Facebook Inc. All rights reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema
|
||||
|
||||
Reference in New Issue
Block a user