apple / apple/swift-container-plugin
`containertool` should warn if the target executable is not compatible with the base layer
Open
kind/enhancement
status/needs-design
- Dominant language
- Swift
- Stars
- 390
- Forks
- 26
- Avg merge
- 8m
- Merged PRs (30d)
- 1
Description
Accidentally building an image containing a mach-o binary stacked on top of a Linux base image causes confusing errors at runtime. The user may still have a good reason to put an incompatible file into an image, but `containertool` should at least print a warning if it detects it.
Contributor guide
Research direction
Start at the containertool entry point and trace how it identifies the target executable and base layer. Check how compatibility is determined for Mach-O and Linux binaries, then verify that an incompatible target produces a warning while the image build remains allowed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, swift
- Domain
- devops, operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100