From 39a38bfd7460fbec1e3e44a1c52a502f3f43d251 Mon Sep 17 00:00:00 2001 From: Maksim Totmin Date: Mon, 14 Sep 2026 00:37:20 +0700 Subject: [PATCH] =?UTF-8?q?ci:=20=D1=83=D1=81=D1=82=D0=BE=D0=B9=D1=87?= =?UTF-8?q?=D0=B8=D0=B2=D1=8B=D0=B9=20=D0=BA=D0=B0=D1=80=D0=B0=D0=BD=D1=82?= =?UTF-8?q?=D0=B8=D0=BD=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=B5=D0=B9=20(grep=20=D0=BF=D0=BE=D0=B4=20set=20-?= =?UTF-8?q?e)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit grep -v без совпадений возвращает 1; в sh -e это роняло шаг. Добавлен || true. --- .gitea/workflows/ci.yml | 3 ++- Makefile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 626e8e4..6e4d061 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -47,7 +47,8 @@ jobs: run: | direct=$(go list -m -f '{{if not .Main}}{{if not .Indirect}}{{.Path}}{{end}}{{end}}' all) allowed='^(github.com/modelcontextprotocol/go-sdk|gopkg.in/yaml.v3|github.com/BurntSushi/toml)$' - bad=$(echo "$direct" | grep -vE "$allowed" | grep -v '^$') + bad=$(echo "$direct" | grep -vE "$allowed" | grep -v '^$' || true) if [ -n "$bad" ]; then echo "недопустимые прямые зависимости:"; echo "$bad"; exit 1 fi + echo "toolkit-deps: ok" diff --git a/Makefile b/Makefile index 9008a95..066a60f 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ tidy-check: toolkit-deps: @direct=$$($(GO) list -m -f '{{if not .Main}}{{if not .Indirect}}{{.Path}}{{end}}{{end}}' all); \ allowed='^(github.com/modelcontextprotocol/go-sdk|gopkg.in/yaml.v3|github.com/BurntSushi/toml)$$'; \ - bad=$$(echo "$$direct" | grep -vE "$$allowed" | grep -v '^$$'); \ + bad=$$(echo "$$direct" | grep -vE "$$allowed" | grep -v '^$$' || true); \ if [ -n "$$bad" ]; then \ echo "недопустимые прямые зависимости (разрешены только go-sdk/yaml/toml):"; \ echo "$$bad"; exit 1; \