dbt-project-evaluator icon indicating copy to clipboard operation
dbt-project-evaluator copied to clipboard

Wrong recommendation to change the file path on Windows

Open b-per opened this issue 1 year ago • 2 comments

Describe the bug

A person is reporting that running the package returns the following:

RESOURCE_NAME: ba01_bbprod.demand_order_item
CURRENT_FILE_PATH: models\staging\ba01_bbprod\src_bbprod.yml
CHANGE_FILE_PATH_TO: models/staging/ba01_bbprod/models\staging\ba01_bbprod\src_bbprod.yml

This looks like an issue handling / vs \ for separating directories for Unix based OSes vs Windows

b-per avatar Oct 28 '22 06:10 b-per

It looks like we should be able to check the env var OSTYPE to modify the behavior between Windows and the rest. SO link.

b-per avatar Oct 28 '22 09:10 b-per

I will work on a solution for this!

angelica-lastra avatar Oct 28 '22 15:10 angelica-lastra