fix go get (#128)

* fix go get

Repair go get -u issius.

* Update go.mod
This commit is contained in:
hhhkkmk authored and GitHub committed 2025-03-26 19:49:26 +08:00
1 parent e1e7f75d07
commit d3d5265560
2 files changed
+10 -3

No files matched your search

+9 -2
View File
@@ -36,8 +36,12 @@ jobs:
id: compare-tags
run: |
if [ "$LATEST_TAG_NAME" != "$CURRENT_TAG_NAME" ]; then
echo "Tags are different. Updating..."
echo "needs_update=true" >> $GITHUB_ENV
if [ "$(printf '%s\n' "$LATEST_TAG_NAME" "$CURRENT_TAG_NAME" | sort -V | tail -n1)" == "$CURRENT_TAG_NAME" ]; then
echo "Upstream LATEST_TAG_NAME less than the CURRENT_TAG_NAME, no update needed."
else
echo "Tags are different. Updating..."
echo "needs_update=true" >> $GITHUB_ENV
fi
else
echo "Tags are the same. No update needed."
echo "needs_update=false" >> $GITHUB_ENV
@@ -53,6 +57,9 @@ jobs:
if: env.needs_update == 'true'
run: |
go get github.com/xtls/xray-core@${{ env.LATEST_TAG_SHA }}
go get -u
go get gvisor.dev/gvisor@go
go get github.com/OmarTariq612/goech@v0.0.0-20240405204721-8e2e1dafd3a0
go mod tidy -v
git diff