d28f005552
Fix limit for databases other than sqlite go mod tidy && go mod vendor Remove unneeded break statements Make everything work with the new xorm version Fix xorm logging Fix lint Fix redis init Fix using id field Fix database init for testing Change default database log level Add xorm logger Use const for postgres go mod tidy Merge branch 'master' into update/xorm # Conflicts: # go.mod # go.sum # vendor/modules.txt go mod vendor Fix loading fixtures for postgres Go mod vendor1 Update xorm to version 1 Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/323
35 lines
1.2 KiB
Go
35 lines
1.2 KiB
Go
// Package packagesinternal exposes internal-only fields from go/packages.
|
|
package packagesinternal
|
|
|
|
import (
|
|
"time"
|
|
|
|
"golang.org/x/tools/internal/gocommand"
|
|
)
|
|
|
|
// Fields must match go list;
|
|
type Module struct {
|
|
Path string // module path
|
|
Version string // module version
|
|
Versions []string // available module versions (with -versions)
|
|
Replace *Module // replaced by this module
|
|
Time *time.Time // time version was created
|
|
Update *Module // available update, if any (with -u)
|
|
Main bool // is this the main module?
|
|
Indirect bool // is this module only an indirect dependency of main module?
|
|
Dir string // directory holding files for this module, if any
|
|
GoMod string // path to go.mod file used when loading this module, if any
|
|
GoVersion string // go version used in module
|
|
Error *ModuleError // error loading module
|
|
}
|
|
type ModuleError struct {
|
|
Err string // the error itself
|
|
}
|
|
|
|
var GetForTest = func(p interface{}) string { return "" }
|
|
|
|
var GetModule = func(p interface{}) *Module { return nil }
|
|
|
|
var GetGoCmdRunner = func(config interface{}) *gocommand.Runner { return nil }
|
|
|
|
var SetGoCmdRunner = func(config interface{}, runner *gocommand.Runner) {}
|