Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Mark Ent-generated code so GitHub collapses it in diffs and excludes
# it from language stats. The schema files (pkg/ent/schema/**) are
# hand-written and intentionally left out of this rule. Regenerate with:
# go generate ./pkg/ent/...
pkg/ent/*.go linguist-generated=true
pkg/ent/*/*.go linguist-generated=true
2 changes: 1 addition & 1 deletion cmd/server_foreground.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ func initStore(cfg *config.GlobalConfig) (store.Store, error) {
}

entDSN := cfg.Database.URL + "_ent"
entClient, err := entc.OpenSQLite("file:" + entDSN + "?cache=shared")
entClient, _, err := entc.OpenSQLite("file:" + entDSN + "?cache=shared")
if err != nil {
sqliteStore.Close()
return nil, fmt.Errorf("failed to open ent database: %w", err)
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA=
github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU=
github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
github.com/onsi/ginkgo/v2 v2.27.2 h1:LzwLj0b89qtIy6SSASkzlNvX6WktqurSHwkk2ipF/Ns=
github.com/onsi/ginkgo/v2 v2.27.2/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=
github.com/onsi/gomega v1.38.2 h1:eZCjf2xjZAqe+LeWvKb5weQ+NcPwX84kqJ0cZNxok2A=
Expand Down
368 changes: 330 additions & 38 deletions pkg/ent/agent.go

Large diffs are not rendered by default.

295 changes: 227 additions & 68 deletions pkg/ent/agent/agent.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading