polylith

Teemu Kaukoranta 2025-02-12T09:53:16.918889Z

When does poly think Warning 207 applies?

Warning 207 - Unnecessary components were found in project.
    Triggered if components were defined in a project that are not used by any of
    its bricks. Development is only checked if :dev is passed in and is only performed
    by the check command (not test and info). To ignore this warning, put the component
    name in the :necessary vector for a project in :projects in ./workspace.edn.
    See an example here: 
I had projects which were giving a warning about an unused component. That component was only being used in the project tests. But now I'm also seeing warnings about an unused component that is being used in the base's sources?

Teemu Kaukoranta 2025-02-12T09:53:32.703639Z

This seems like a bug. Unfortunately I can't share the code

tengstrand 2025-02-12T11:04:50.468159Z

Sorry to hear. Can you create a small sample project that reproduces the problem?

Teemu Kaukoranta 2025-02-12T11:07:28.939169Z

hmm

Teemu Kaukoranta 2025-02-12T11:07:30.749419Z

maybe

👍 1
tengstrand 2025-02-12T13:41:41.257999Z

You were right, this is a bug. It should include the bricks used by tests for the project itself too. Can you create an issue @teemu.kaukoranta?

Teemu Kaukoranta 2025-02-12T14:02:40.527519Z

Can do

Teemu Kaukoranta 2025-02-12T14:36:52.869749Z

I hope this is clear 🙂 https://github.com/polyfy/polylith/issues/531

tengstrand 2025-02-12T15:14:41.216999Z

Thanks!