Skip to content

go/pkg/mod/github.com/bojand/[email protected]/printer/prometheus.go:16:46: undefined: expfmt.FmtText #439

@hutm

Description

@hutm

Proto file(s)
N/A

Command line arguments / config
N/A

Describe the bug
installing library in go 1.21 fails to import

github.com/bojand/ghz/printer
go/pkg/mod/github.com/bojand/[email protected]/printer/prometheus.go:16:46: undefined: expfmt.FmtText

downgrading to previous version of prometheus common fixes the issue:

replace github.com/prometheus/common v0.53.0 => github.com/prometheus/common v0.45.0

To Reproduce
Steps to reproduce the behavior:
steps above

Expected behavior
A clear and concise description of what you expected to happen.
should work without dependency lib downgrade

Environment

  • OS: [e.g. macOS 14.4.1]
  • ghz: [e.g. 0.118.0]

Screenshots
If applicable, add screenshots to help explain your problem.
N/A
Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions