-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
write: connection reset by peer #62
Comments
How frequent? Could you please also show me a little more context, i.e., more logs? |
I'm getting a different error from the
Do you need more logs? |
You're manually run the action, right? Please remove |
You're correct! The release trigger built the binaries and uploaded them successfully. The manual run failed. It would be great if you could please improve the documentation so it's easy for new users like myself. Thanks for the great work :-) |
Hi youcao, sorry for the late reply, its almost 3/4. The yml file is: name: Release Go Binaries
on:
release:
types: [created]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-18.04
env:
GOPRIVATE: github.com/ioogle
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set BUILD_TIME env
run: echo BUILD_TIME=$(date) >> ${GITHUB_ENV}
- name: Environment Printer
uses: managedkaos/print-env@v1.0
- name: Build Go Binary (warehouse-api)
uses: wangyoucao577/go-release-action@v1.20
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/api"
binary_name: "warehouse-api"
pre_command: "cd ./warehouse; git config --global url.\"https://ioogle:${{ secrets.ACCESS_TOKEN }}@github.com\".insteadOf \"https://github.com\"; go mod download"
ldflags: -X "main.appVersion=${{ github.event.release.tag_name }}" -X "main.buildTime=${{ env.BUILD_TIME }}" -X main.gitCommit=${{ github.sha }} -X main.gitRef=${{ github.ref }}
asset_name: warehouse-api-${{ github.event.release.tag_name }}-${{ matrix.goos }}-${{ matrix.goarch }} |
The error you encounterred seems very similar with cli/cli#3252 and google/go-github#2113. The How big is your asset? Are you run it on your self-hosted runner? Or uses Github hosted runner? I saw you're using |
I made a branch that upgrades underlying github package. If it caused by Github's issue, it maybe helpful. Could you please help to have a try? |
This branch, solved the issue for me |
Hi youcao, thanks for your great work.
I came across a random error:
But sometimes it works fine.
This is the action:
The text was updated successfully, but these errors were encountered: