Closed sanmai-NL closed 1 year ago
It is customary for tools like Creosote to exit with a failure-signalling exit status (value other than zero) when an issue is found. Creosote doesn't. The effect is that CI/CD pipelines in principle cannot detect unused dependencies with Creosote.
$ creosote --paths azure/ core/ datapipeline_ff/ Found packages in pyproject.toml: nsone, pip, pulumi, pulumi-azure-native, pulumi-command, pulumi-kubernetes, pulumi-ns1, setuptools Oh no, bloated venv! 🤢 🪣 Unused packages found: nsone, pip, setuptools $ echo $status 0
2.3.7 (current main branch revision)
This sounds really strange. I was sure it already did this. I'll have a look later today.
Thanks for reporting @sanmai-NL 👍 This was a pretty bad one.
What happened?
It is customary for tools like Creosote to exit with a failure-signalling exit status (value other than zero) when an issue is found. Creosote doesn't. The effect is that CI/CD pipelines in principle cannot detect unused dependencies with Creosote.
Reproduction steps
Relevant log output