Skip to content

fix: automate TWS version extraction for release tags#2

Merged
martinffx merged 1 commit into
mainfrom
fix/tws-version-extraction
May 25, 2026
Merged

fix: automate TWS version extraction for release tags#2
martinffx merged 1 commit into
mainfrom
fix/tws-version-extraction

Conversation

@martinffx

@martinffx martinffx commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

Automates the extraction of the TWS version from the installed JAR files during the Docker build process. This fixes the stale hardcoded version (1030) in the Makefile release target.

Changes

  • Dockerfile: After installation, extracts the version from twslaunch-*.jar and saves it to /home/docker/.tws-version
  • Makefile: Uses deferred expansion (=) so VERSION is computed after build runs and .tws-version exists
  • Cleanup: Removed stale 335MB install-ibgateway.sh from repo root (it was already being downloaded fresh in the Dockerfile)
  • .gitignore: Added .tws-version to prevent committing local version files
  • CI: Renamed DOCKER_TOKEN to DOCKER_HUB_TOKEN in GitHub workflow for consistency

Verification

make -n release now generates the correct tag: v1045-ibc3.23.0

Related

Fixes the version mismatch where the Makefile was still looking for the hardcoded Jts/1030 path.

- Extract version from installed twslaunch jar during Docker build
- Save version to .tws-version inside image and read back during make build
- Update Makefile to use deferred expansion so VERSION resolves after build
- Remove stale 335MB install-ibgateway.sh from repo root (downloaded fresh in Dockerfile)
- Add .tws-version to .gitignore
- Rename DOCKER_TOKEN to DOCKER_HUB_TOKEN in GitHub workflow
@martinffx martinffx force-pushed the fix/tws-version-extraction branch from 368b999 to fe1c068 Compare May 25, 2026 06:53
@martinffx martinffx merged commit 739305f into main May 25, 2026
2 checks passed
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.

1 participant