Update update-dependencies.yml

This commit is contained in:
civisrom 2025-03-04 16:05:11 +03:00 committed by GitHub
parent ec852457a9
commit 4792c8d69a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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