-
Notifications
You must be signed in to change notification settings - Fork 43
Refactor update-rpm-lock.sh to work on MacOS #3037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a file descriptor issue when using podman with the process substitution.
PR Compliance Guide 🔍(Compliance updated until commit e35fb50)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit e35fb50
|
|||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨No code suggestions found for the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Merging this. |
User description
There was a file descriptor issue when using podman with the process substitution.
PR Type
Bug fix, Enhancement
Description
Replace process substitution with temporary file to fix podman compatibility on macOS
Add explicit platform specification (linux/amd64) for container builds
Use mktemp for safe temporary Dockerfile creation with cleanup trap
Apply platform flag to both build and run commands for consistency
Diagram Walkthrough
File Walkthrough
update-rpm-lock.sh
Fix macOS podman compatibility with temp fileshack/update-rpm-lock.sh
<(cat < with temporary file created via
mktempto resolve podman file descriptor issues on macOSAdd
PLATFORM="linux/amd64"variable for explicit container platformspecification
Add trap handler to clean up temporary Dockerfile on script exit
Apply
--platform "${PLATFORM}"flag to bothpodman buildandpodmanruncommands for consistency