Skip to content

Conversation

@vivekr-splunk
Copy link
Collaborator

Summary

Fixes the release workflow failure: "Unable to find Go version"

Problem

The job in was trying to use but:

  1. The job was missing the step to read the file
  2. action's expects a file with just the version, not a full file

Solution

  • Added "Read .env file" step to the job (matching the job)
  • Changed to use instead of
  • Now properly extracts GO_VERSION=1.24.0 from .env and passes just 1.24.0 to setup-go

Testing

  • Workflow syntax validates
  • After merge, re-trigger v0.1.0 release

Related

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

- Add Read .env file step to package job
- Change setup-go to use go-version with dotenv output instead of go-version-file
- Fixes: 'Unable to find Go version' error in release workflow

The package job was missing the dotenv step, causing setup-go to fail
when trying to parse .env as a version file.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings November 18, 2025 23:59
Copilot finished reviewing on behalf of vivekr-splunk November 19, 2025 00:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a workflow failure in the release pipeline by properly extracting the Go version from the .env file. The package job was missing the step to read the .env file and was incorrectly using go-version-file with the full .env file instead of extracting the version value.

  • Added "Read .env file" step to the package job to parse environment variables
  • Changed from go-version-file: '.env' to go-version: ${{ steps.dotenv.outputs.GO_VERSION }}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 19484659780

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 36.822%

Totals Coverage Status
Change from base Build 19483882671: 0.0%
Covered Lines: 2336
Relevant Lines: 6344

💛 - Coveralls

@vivekr-splunk vivekr-splunk merged commit 28b9939 into main Nov 19, 2025
14 checks passed
@vivekr-splunk vivekr-splunk deleted the fix/release-workflow-go-version branch November 19, 2025 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants