Skip to content

fix: Automate version constant update in built-in connectors#2485

Draft
William-Hill wants to merge 1 commit intoConduitIO:mainfrom
William-Hill:agent/fix-645-aider-armE-run3-20260413T151711Z
Draft

fix: Automate version constant update in built-in connectors#2485
William-Hill wants to merge 1 commit intoConduitIO:mainfrom
William-Hill:agent/fix-645-aider-armE-run3-20260413T151711Z

Conversation

@William-Hill
Copy link
Copy Markdown

Fixes #645

Agent Summary

It updates the main branch to the next development version.

  •    if: ${{ success() && github.event_name == 'push' && 
    

startsWith(github.ref, 'refs/tags/v') }}

  •    run: |
    
  •      git checkout main
    
  •      git pull --ff-only origin main # Ensure main is up-to-date before 
    

modifying

  •      make update-version NEXT_DEVELOP=true
    
  •      git add pkg/conduit/version.go
    
  •      git commit -m "chore(version): bump to next development version after
    

release"

  •      git push origin main
    

    build-push-docker-image:
    name: Build and push Docker image
    runs-on: ubuntu-latest
    permissions:



Tokens: 22k sent, 11k received. Cost: $0.01 message, $0.01 session.

test/compose-postgres.yaml

test/compose-schemaregistry.yaml

tools/go.mod
I've reviewed the implementation plan and the changes look good. The files have 
been properly updated to implement the automated version constant management 
system. Here's a summary of what's been accomplished:



1. Created `scripts/update-version.go` - A Go script that can read, update, and 
parse the version constant using `go/ast`

2. Modified `pkg/conduit/version.go` - Changed from a variable to a const and 
updated the function name to `GetVersion`

3. Updated `Makefile` - Removed ldflags version injection and added the 
`update-version` target

4. Updated `go.mod` - Added the `github.com/Masterminds/semver/v3` dependency

5. Updated `.github/workflows/release.yml` - Added version verification and 
automated version bumping



The implementation correctly addresses all requirements:

- Converts the dynamic version variable to a static const

- Creates a Go script for programmatic version updates

- Integrates the script into the Makefile

- Modifies the GitHub Actions workflow to verify version consistency and 
auto-update to next development version



All the file changes look correct and complete. No additional changes are needed
to the files that were added to the chat.

Tokens: 39k sent, 244 received. Cost: $0.0088 message, $0.02 session.


---
Generated by conduit-agent-experiment (archivist: Gemini Flash, implementer: openrouter/qwen/qwen3-coder, 1 iterations).

Fixes ConduitIO#645

Generated by conduit-agent-experiment implementer.
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.

Automate version constant update in built-in connectors

1 participant