-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix GitHub Actions Failure Due to Missing go-gitlint Tool #158
Conversation
Rollback Files For Sweep
|
Sandbox Executions
Check scripts/githooks/commit-msg with contents:
Check scripts/githooks/commit-msg with contents: |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: Making changes according to plan... (step 3/3) |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: Making changes according to plan... (step 3/3) |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: Making changes according to plan... (step 3/3) |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: |
Fixing PR: track the progress here.I'm currently fixing this PR to address the following: [Sweep GHA Fix] The GitHub Actions run failed with the following error logs: |
This issue is stale because it has been open 7 days with no activity. |
This PR was closed because it has been stalled for 5 days with no activity. You can reopen it if you want. |
PR Feedback (click)
I created this PR to fix the failing GitHub Actions.## Description
This PR addresses the issue of GitHub Actions failing due to the go-gitlint tool not being found. The
commit-msg
script was modified to correctly install the go-gitlint tool if it's not found, and to verify that the tool was correctly installed after the installation commands. Thecommit-msg
script was also modified to attempt to install the go-gitlint tool again if it was not found after a failed run.Summary of Changes
scripts/githooks/commit-msg
script to replace the placeholder comment with the actual commands to download and install the go-gitlint tool. This includes acurl
orwget
command to download the tool, achmod
command to make it executable, and amv
command to move it to the./_output/tools/
directory.scripts/githooks/commit-msg
script to verify that the tool was correctly installed. This is anotherif ! command -v $GITLINT_DIR &>/dev/null; then
block that prints an error message and exits with a non-zero status code if the tool is still not found.scripts/githooks/commit-msg
script to remove themake tools
command, as it seems to not be doing anything according to the error logs. Replaced it with the same installation commands that were added to the previous block of code. This ensures that the tool is attempted to be installed again if it was not found after a failed run.