polylith

euccastro 2025-11-05T10:03:10.212859Z

I'm having a warning I cannot explain in poly 0.3.30 (it was the same in 0.2.22). Details in thread.

euccastro 2025-11-05T10:03:30.098519Z

I'm getting the following error: > Warning 207: Unnecessary components were found in the sqa project and may be removed: nsqc-db-logical-device, sqo-db-logical-device. To ignore this warning, execute 'poly help check' and follow the instructions for warning 207. This is how my component folder looks like:

bash
ecc@sisteminha:~/git/sqa$ tree components
components
├── nsqc-db-logical-device
│   ├── deps.edn
│   ├── src
│   │   └── sq
│   │       └── nsqc_db_logical_device
│   │           └── interface.clj
│   └── test
│       └── sq
│           └── nsqc_db_logical_device
│               └── interface_test.clj
└── sqo-db-logical-device
    ├── deps.edn
    ├── src
    │   └── sq
    │       └── sqo_db_logical_device
    │           └── interface.clj
    └── test
        └── sq
            └── sqo_db_logical_device
                └── interface_test.clj

15 directories, 6 files
In the sqa project I am declaring the components like so:
clojure

poly/sqo-db-logical-device {:local/root "../../components/sqo-db-logical-device"}
poly/nsqc-db-logical-device {:local/root "../../components/nsqc-db-logical-device"}
And in one of the source files in the sqa project I am requiring the first of those namespaces and using it like so:
clojure
(ns sqa.sqo
  (:require
   ,,,
   [sq.sqo-db-logical-device.interface :as dbld]
   ))

,,,


(defn use-dbld []
  (dbld/root {} :luud.sqid))

(use-dbld)
(Where sq is the top-level namespace configured in my workspace.edn.) This file is included unconditionally in the classpath, no aliases required. I have verified in the sqa project REPL that this require works fine. I know how to silence the error, but I'd like to know what am I doing unidiomatically here.

euccastro 2025-11-05T10:04:49.768109Z

That is, I fully expect the error about nsqc-db-logical-device, as I am indeed not using that. The problem is with sqo-db-logical-device, which I am exercising in the project code

tengstrand 2025-11-05T12:12:07.282429Z

How does the output from the deps command look like?

tengstrand 2025-11-05T12:13:22.932039Z

To get an image, you can execute something like: clojure -M:polyx deps out:libs.png

euccastro 2025-11-05T13:22:48.118779Z

Output is just:

ecc@sisteminha:~/git/sqa$ clojure -M:poly deps
  brick                 
  ----------------------
  nsqc-db-logical-device
  sqo-db-logical-device 

tengstrand 2025-11-05T15:09:34.188129Z

Can you export the whole workspace, and DM the file to me? E.g. poly ws out:euccastro.edn