Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana v11.4 downloads 11.3.1 #38867

Open
about14sheep opened this issue Jan 6, 2025 · 3 comments
Open

Grafana v11.4 downloads 11.3.1 #38867

about14sheep opened this issue Jan 6, 2025 · 3 comments

Comments

@about14sheep
Copy link

When trying to download grafana v11.4.0, we are actually getting v11.3.1.

Docker logs show that the correct version is being pulled, but when running grafana -v we get grafana version 11.3.1.

I have also confirmed that this happens for any available version above 11.3.1.

Sample Dockerfile for repo:

FROM cgr.dev/chainguard/wolfi-base

RUN apk add grafana # This will also behave the same when explicitly asking for version 11.4 (i.e grafana-11.4)

CMD ["grafana", "-v"]

When building the image you see the correct install log:
(4/4) Installing grafana-11.4 (11.4.0-r3)

However when running the container you get:
grafana version 11.3.1

@kranurag7
Copy link
Member

hey, thanks for raising this. This is likely an issue for upstream, we build from grafana published tags.

If you clone the 11.4.0 and run the following you'll see the following:

$ go run build.go build
Version: 11.3.1, Linux Version: 11.3.1, Package Iteration: 1736366450
building binaries build
building grafana ./pkg/cmd/grafana

You can also invoke make build or make build-go for this.

I'll probably file an upstream issue about this version mismatch.

I can assure you that you're running compiled code from 11.4.0 tag it's just that the version that's being printed is wrong in this case.

@tuananh
Copy link
Contributor

tuananh commented Jan 10, 2025

related: grafana/grafana#98572

@kranurag7
Copy link
Member

thank you for the reference @tuananh

I had a look into it other day and there's no easy option to fix it at Makefile level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants