fix: pin ruamel.yaml<0.18 to fix CI failures#51
Merged
Conversation
Prevent worktree contents from being tracked in the repository. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ruamel.yaml 0.18+ removed the old `yaml.load(data, Loader=...)` API that this project uses. This is a temporary workaround to pin to an older version until the code is updated to use the new API. See issue #50 for tracking the proper fix. Note: This PR should NOT close #50 - the underlying code still needs to be updated to support ruamel.yaml 0.18+. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR implements a temporary workaround to resolve CI failures caused by API incompatibility with ruamel.yaml 0.18+. The version constraint prevents the installation of newer versions that removed the deprecated yaml.load(data, Loader=...) API still used in the codebase.
- Pins ruamel.yaml to versions below 0.18 to prevent CI failures
- Adds a TODO comment referencing issue #50 for tracking the proper fix
- Includes an unrelated .gitignore addition for Git worktrees
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| setup.py | Adds version constraint ruamel.yaml<0.18 with TODO comment explaining temporary nature of fix |
| .gitignore | Adds .worktrees/ directory to ignored files (unrelated to main PR purpose) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
ruamel.yaml<0.18insetup.pyto work around API incompatibilityBackground
ruamel.yaml 0.18+ (released 2023) removed the old
yaml.load(data, Loader=...)API that this project uses. The Docker image pulls the latestpython:alpineandpip installfetches the latest ruamel.yaml, causing alldocker-image-buildjobs to fail with:Important
This PR is a temporary workaround, NOT a complete fix.
Test plan
docker-image-buildjobs now passRelated to #50 (but does not close it)
🤖 Generated with Claude Code