Comment 3 for bug 2012504

Revision history for this message
Callahan Kovacs (mr-cal) wrote :

Yes, I misunderstood you!

I see what you're talking about now. Here's where craft-parts prepends the build environment's PATH with existing bin directories:
- https://github.com/canonical/craft-parts/blob/4f305249a87e861d182f1525a758452dc5a0df2e/craft_parts/executor/environment.py#L95
- https://github.com/canonical/craft-parts/blob/4f0645b70b64ffcc3db45fa105de020b36308c24/craft_parts/utils/os_utils.py#L75

I agree that staged bin directories shouldn't be appended to the build environment's PATH when cross-compiling.