fix(shims): fix rubygem and pypi publish failures#377
Merged
Conversation
Ruby 4.0 removed rake from default gems — add it to the Gemfile. pip 25.1+ dropped --hash as a CLI argument — move hash-pinned build deps to a requirements file where --hash is still supported. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Deploying archgate-cli with
|
| Latest commit: |
3c5bb40
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d03fc0c9.archgate-cli.pages.dev |
| Branch Preview URL: | https://claude-compassionate-driscol.archgate-cli.pages.dev |
Contributor
Code Coverage
Full HTML report available in workflow artifacts. Per-directory breakdown
|
uv build handles the entire sdist+wheel pipeline from pyproject.toml without needing a separate build dep install step. Eliminates the pip --hash compatibility issue entirely. Locally validated: uv build produces archgate-0.41.0 sdist + wheel. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
- Use `uv build --python 3.12` instead of action-level python-version - Use pessimistic `~> 13.0` constraint for rake (idiomatic Ruby) - Add comments explaining why rake and uv build are needed Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
4 tasks
Keep python-version as a setup-uv action input so Renovate/Dependabot can detect and bump it automatically. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Document pip --hash CLI removal and Ruby 4.0 rake default gem removal so future agents don't reintroduce the broken patterns. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the v0.41.0 Publish Shims CI failures (consolidates #378):
rakefrom default gems. Addedgem "rake", "~> 13.0"toshims/rubygem/Gemfilesobundle exec rake releasecan find it.pip install build+python -m buildwithuv build --python 3.12(via SHA-pinnedastral-sh/setup-uv). Eliminates thepip --hashCLI incompatibility and avoids Scorecard Pinned-Dependencies flags.Local validation
Both shim builds verified locally before pushing:
uv build --python 3.12archgate-0.41.0sdist + wheel, import verifiedbundle exec rake buildrake 13.4.2, builtarchgate-0.41.0.gemTest plan
publish-shims.ymlviaworkflow_dispatchwith tagv0.41.0publish-rubygemandpublish-pypijobs succeed