Skip to content

CASSSIDECAR-472: Fix version in RPM/Deb builds#362

Merged
frankgh merged 3 commits into
apache:trunkfrom
frankgh:CASSSIDECAR-472
Jun 16, 2026
Merged

CASSSIDECAR-472: Fix version in RPM/Deb builds#362
frankgh merged 3 commits into
apache:trunkfrom
frankgh:CASSSIDECAR-472

Conversation

@frankgh

@frankgh frankgh commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Patch by Francisco Guerrero; reviewed by TBD for CASSSIDECAR-472

Comment thread build.gradle
ospackage {
packageName = "apache-cassandra-sidecar"
version = project.version
release = "1"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is the actual fix

Comment thread .github/workflows/ci.yml
EXPECTED_VERSION=$(grep "^version=" gradle.properties | cut -d'=' -f2 | tr '-' '~')
RPM_FILE=$(ls build/distributions/apache-cassandra-sidecar*.rpm | head -n1)
echo "Querying: ${RPM_FILE}"
ACTUAL_VERSION=$(rpm -qp --queryformat '%{VERSION}' "${RPM_FILE}")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

validate that the version matches the expected version from gradle.properties

frankgh added 2 commits June 16, 2026 06:37
Patch by Francisco Guerrero; reviewed by TBD for CASSSIDECAR-472
@frankgh frankgh merged commit fbd2e55 into apache:trunk Jun 16, 2026
2 checks passed
@frankgh frankgh deleted the CASSSIDECAR-472 branch June 16, 2026 17: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.

2 participants