Skip to content

panic: slices.MaxFunc: empty list on dbc info #175

@amoeba

Description

@amoeba

I just ran into this and haven't troubleshooted at all:

$ dbc search postgres
• postgresql - An ADBC driver for PostgreSQL developed under the Apache Software Foundation [installed: user=>1.8.0]

~
$ dbc info postgres
Error: driver `postgres` not found in driver registry index
panic: slices.MaxFunc: empty list

goroutine 1 [running]:
slices.MaxFunc[...](...)
	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.6.linux-amd64/src/slices/sort.go:111
github.com/columnar-tech/dbc.Driver.MaxVersion({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, ...}, ...})
	/home/runner/work/dbc/dbc/drivers.go:362 +0x124
main.formatDriverInfo({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, ...}, ...})
	/home/runner/work/dbc/dbc/cmd/dbc/info.go:66 +0x88
main.infoModel.FinalOutput(...)
	/home/runner/work/dbc/dbc/cmd/dbc/info.go:95
main.main()
	/home/runner/work/dbc/dbc/cmd/dbc/main.go:209 +0x4b0
$ dbc --version
v0.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions