A Python tool to enforce dependencies, using modular architecture π Open source π Installable via pip π§ Able to be adopted incrementally - β‘ Implemented with no runtime impact βΎοΈ Interoperable with your existing systems π¦ Written in rust
Fixes an issue @max-muoto brought to my attention.
The bug manifested as a particular file change being mapped onto the wrong module, triggering almost the entire test suite when there should have been zero tests affected.
The issue was that the changed file detection assumed that git diff --name-status provided paths relative to the current working directory (similar to git status) but this is not the case. The paths are always relative to the git root, which means that later calls to resolve were creating incorrect paths relative to CWD.
This led to incorrect module paths being detected, and then incorrect tests being run.
Fixes an issue @max-muoto brought to my attention.
The bug manifested as a particular file change being mapped onto the wrong module, triggering almost the entire test suite when there should have been zero tests affected.
The issue was that the changed file detection assumed that
git diff --name-status
provided paths relative to the current working directory (similar togit status
) but this is not the case. The paths are always relative to the git root, which means that later calls toresolve
were creating incorrect paths relative to CWD.This led to incorrect module paths being detected, and then incorrect tests being run.