Update update-dependencies.yml

This commit is contained in:
civisrom 2025-03-04 16:00:26 +03:00 committed by GitHub
parent 27c2488614
commit e07f444723
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,17 +72,15 @@ jobs:
set -euo pipefail # Строгий режим для bash set -euo pipefail # Строгий режим для bash
echo "Updating standard Go dependencies..." echo "Updating standard Go dependencies..."
go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all | \ go list -m all | awk '{print $1}' | grep -v 'gvisor.dev/gvisor' | grep -v 'github.com/xtls/xray-core' | xargs -r go get -u=patch
grep -v 'gvisor.dev/gvisor' | \
grep -v 'github.com/xtls/xray-core' | \
xargs -r go get -u
echo "Updating Xray-core to release ${{ env.latest_tag }} (Go version: ${{ env.go_version }})" echo "Updating indirect dependencies..."
go list -m all | awk '{print $1}' | grep -E 'golang.org/x/|github.com/google/|github.com/dgryski/' | xargs -r go get -u
echo "Updating Xray-core to release ${{ env.latest_tag }} (commit: ${{ env.commit_hash }})"
go get github.com/xtls/xray-core@${{ env.commit_hash }} go get github.com/xtls/xray-core@${{ env.commit_hash }}
echo "Updated Xray-core to:" echo "Cleaning up and verifying..."
go list -m github.com/xtls/xray-core
go mod tidy go mod tidy
go mod verify || exit 1 go mod verify || exit 1