fix(makefile): read release version from CHANGELOG heading
The old pattern 'grep -om1 "v[0-9].*"' matched the first vN.N.N anywhere in the file, so any mention of a module pseudo-version above the release heading silently corrupted the build version (e.g. it produced "v0.0.0-20261102152715-54038813c47f`." as main.version). Anchor it to the ## vX.Y.Z heading instead.
This commit is contained in:
1 parent
ab5f84213f
commit
70ecc1746c
2 files changed
+6
-6
No files matched your search
+5
-5
@@ -3,11 +3,11 @@
|
||||
## Não lançado
|
||||
|
||||
### 🔧 Correções
|
||||
- **whatsmeow atualizado para 2026-11-02** — a versão fixada em 0.7.2
|
||||
(`v0.0.0-20260630180629`) ficou 125 dias atrás do upstream. O WhatsApp subiu a
|
||||
versão mínima de cliente nesse intervalo e passou a recusar a conexão com
|
||||
**405 client outdated**, impedindo pareamento e reconexão das instâncias.
|
||||
Agora em `v0.0.0-20261102152715-54038813c47f`.
|
||||
- **whatsmeow atualizado para 2026-11-02** — a versão fixada na 0.7.2
|
||||
(commit `b572e5bcb92b`, de 30/06/2026) ficou 125 dias atrás do upstream. O
|
||||
WhatsApp subiu a versão mínima de cliente nesse intervalo e passou a recusar a
|
||||
conexão com **405 client outdated**, impedindo pareamento e reconexão das
|
||||
instâncias. Agora em `v0.0.0-20261102152715-54038813c47f`.
|
||||
- **Go 1.26** — o whatsmeow novo exige `go >= 1.26.0`; o `Dockerfile` passou a
|
||||
usar `golang:1.26.10-alpine` no estágio de build.
|
||||
- **Ajustes de API do whatsmeow** — `UpdateBlocklist` e `GetBlocklist` agora
|
||||
|
||||
@@ -5,7 +5,7 @@ APP_NAME=evolution-go
|
||||
MAIN_PATH=cmd/evolution-go/main.go
|
||||
BUILD_DIR=build
|
||||
GO=go
|
||||
VERSION=$(shell grep -om1 "v[0-9].*" CHANGELOG.md)
|
||||
VERSION=$(shell sed -n 's/^## \(v[0-9][^ ]*\).*/\1/p' CHANGELOG.md | head -1)
|
||||
LDFLAGS=-ldflags "-X main.version=$(VERSION)"
|
||||
GOFLAGS=-v
|
||||
|
||||
|
||||
Reference in new issue
Block a user