Skip to content

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

Closed

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/[email protected]/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

Activity

  1. added theissue type on Oct 29, 2025
  2. zeroshade commented on Nov 3, 2025

    @zeroshade
    Member

    I missed that slices.MaxFunc panics if the list is empty 😦 I'll fix that

  3. added a commit that references this issue on Apr 17, 2026
    4929681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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