deptrac icon indicating copy to clipboard operation
deptrac copied to clipboard

Case sensitivity related problem

Open savinmikhail opened this issue 1 year ago • 0 comments

Minimal reproducing repo: https://github.com/savinmikhail/deptrac-bug-reproducing-repo

Expected behavior:

So I expect deptrac to differentiate ./config from ./src/Config, but it doesn't happen, and it scolds that src layer depends on src layer AND that src depends on config layer, which both not proper behavior, I think

Possibly the part of the problem is that I use macOS, which is case-insensitive to directories

Mb I misconfigured deptrac

Received output: image

my config:

deptrac:
    analyser:
        types:
            - class
            - class_superglobal
            - file
            - function
            - function_call
            - function_superglobal
            - use

    paths:
        - config
        - src

    layers:
        - { name: config,     collectors: [ { type: directory, value: ./config/.* } ] }
        - { name: src,        collectors: [ { type: directory, value: ./src/.* } ] }

    ruleset:
        config: [src]

for now I just excluded config rule from config

i will appreciate any help

savinmikhail avatar Oct 17 '24 17:10 savinmikhail