Merge pull request 'Release by itself at every merge' (#38) from ci/semantic-release into main
All checks were successful
release / release (push) Successful in 38s
release / image (push) Successful in 3m44s

This commit is contained in:
squid 2026-11-16 12:09:16 +00:00
commit 3490849837

View file

@ -60,8 +60,10 @@ import (
const defaultConfigFile = "sonda.toml"
// version goes into the User-Agent sent to providers.
const version = "0.1.0"
// version goes into the User-Agent sent to providers, and is what GET /version says. The release sets it
// (-ldflags "-X main.version=1.2.3": see the Dockerfile and the Makefile); a build that was not made by a release says
// "dev".
var version = "dev"
// lastfmMinInterval spaces the requests to Last.fm well below its limit.
const lastfmMinInterval = 250 * time.Millisecond