ci: устойчивый карантин зависимостей (grep под set -e)
grep -v без совпадений возвращает 1; в sh -e это роняло шаг. Добавлен || true.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user