Skip to content

Build failure in app using slog-loki v3.6.0 #54

Description

@5-lagu

After running go get -u today, I'm now getting the followin error when trying to build:

github.com/grafana/loki-client-go/loki
../../go/pkg/mod/github.com/grafana/loki-client-go@v0.0.0-20251015150631-c42bbddc310a/loki/client.go:288:20: cannot range over lbls (variable of struct type labels.Labels)
../../go/pkg/mod/github.com/grafana/loki-client-go@v0.0.0-20251015150631-c42bbddc310a/loki/client.go:289:13: cannot index lbls (variable of struct type labels.Labels)
../../go/pkg/mod/github.com/grafana/loki-client-go@v0.0.0-20251015150631-c42bbddc310a/loki/client.go:292:60: cannot index lbls (variable of struct type labels.Labels)

This dependancy was upgraded:

go: upgraded github.com/grafana/loki-client-go v0.0.0-20240913122146-e119d400c3a5 => v0.0.0-20251015150631-c42bbddc310a

This package seems both experimental and I'm not sure what happened there... Any tips?

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