Grafana agent: current agent_build_info sends empty version

I have a fresh install of grafana-agent on a Ubuntu 22.04.2 machine (using apt). The current version no longer sends version information.

$ curl -s http://localhost:9090/metrics | grep agent_build_info
# HELP agent_build_info A metric with a constant '1' value labeled by version, revision, branch, goversion from which agent was built, and the goos and goarch for the build.
# TYPE agent_build_info gauge
agent_build_info{branch="",goarch="amd64",goos="linux",goversion="go1.20.3",revision="d25614ee52578ac5a0dc0c6d31c45ee97263843a",tags="netgo,builtinassets,promtail_journal_enabled",version=""} 1

# grafana-agent --version
agent, version  (branch: , revision: d25614ee52578ac5a0dc0c6d31c45ee97263843a)
  build user:
  build date:
  go version:       go1.20.3
  platform:         linux/amd64
  tags:             netgo,builtinassets,promtail_journal_enabled

On another machine (installed a few days ago) I get

$ curl -s http://localhost:9090/metrics | grep agent_build_info
# HELP agent_build_info A metric with a constant '1' value labeled by version, revision, branch, goversion from which agent was built, and the goos and goarch for the build.
# TYPE agent_build_info gauge
agent_build_info{branch="HEAD",goarch="amd64",goos="linux",goversion="go1.20",revision="f48e41a9",version="v0.32.1"} 1

# grafana-agent --version
agent, version v0.32.1 (branch: HEAD, revision: f48e41a9)
  build user:       root@ce4f3c31cd6b
  build date:       2023-03-06T19:07:00Z
  go version:       go1.20
  platform:         linux/amd64

Seems already to be known …