The subdirectory is ok for a 16 project but not for a 17 project:
Running otools addon add --pr https://github.com/OCA/purchase-workflow@refs/pull/2333 purchase_stock_packaging produces:
odoo-addon-purchase_stock_packaging @ git+https://github.com/OCA/purchase-workflow@refs/pull/2333/head#subdirectory=setup/purchase_stock_packaging
instead of
odoo-addon-purchase_stock_packaging @ git+https://github.com/OCA/purchase-workflow@refs/pull/2333/head#subdirectory=purchase_stock_packaging