Open webknjaz opened 3 months ago
@webknjaz this looks like it would be resolved by https://github.com/ansible/awx/pull/15317
Oh, interesting. I suppose it would. Although, I'd probably look into solving this differently. But that's sometime in the future. Maybe, modularization will yield different practices to be followed around packaging+dev env. We'll see.
Please confirm the following
security@ansible.com
instead.)Bug Summary
The updater script post-processes the
pip-compile
output in a way that re-assigns the source comments to incorrect package specifiers. This is becausesed
only removes the lines containing PEP 508 specifiers, but not the comments associated with them.AWX version
devel
Select the relevant components
Installation method
docker development environment
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
Run the updater.
Expected results
It shouldn't leave comments referring to the removed entries.
Actual results
It does.
Additional information
I printed out the produced constraint file output before and after https://github.com/ansible/awx/blob/78f345c/requirements/updater.sh#L27-L35 to verify that it's not a problem with
pip-tools
and found that this is a weakness of howsed
is post-processing thepip-compile
output.Here's the difference of what
pip-compile
produces vs. how it's changed: