-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Batch file provided in vendor bin crashes on Windows #188
Comments
Thank you very much for the report @SierraKomodo It's interesting... I will try to find Win machine and reproduce the issue to fix. In the meantime I can just recommend you to try using Docker or Phar file # Just download the latest version
wget https://github.com/jbzoo/csv-blueprint/releases/latest/download/csv-blueprint.phar
chmod +x ./csv-blueprint.phar
./csv-blueprint.phar validate-csv \
--csv=./tests/fixtures/demo.csv \
--schema=./tests/schemas/demo_invalid.yml |
This change uses various possible path locations to locate the `autoload.php` file and throws an error if not found. It closes #188
I fixed the issue in the release v1.0.1 When you have a chance, try to install a new version a test it again. Please let me know about the results. Thank you in advance. |
Added to my todo list for today when I get home from work. |
Looks to be working now in testing. Tested both the batch and bash script files in various windows terminals (And git bash for the bash script) on windows. |
Describe the issue
Running the
csv-blueprint.bat
file located invendor/bin
within a composer project utilizing csv-blueprint dumps the below error, regardless of which command is run, or even if no command is provided.This occurs when running the file from the project root, i.e. via
vendor/bin/csv-blueprint.bat
, or when navigating to the bin folder and running the file from there.Based on the error message, it appears to be trying to find the vendor folder within the csv-blueprint project folder instead of the root project folder when installed via composer as a dependency.
Tested using command prompt, powershell, nushell, and git bash shell environments on Windows 10.
Not tested in a linux environment.
To Reproduce
composer require jbzoo/csv-blueprint 1.0.0
vendor/bin/csv-blueprint.bat validate-schema --help
cd vendor/bin ; csv-blueprint.bat validate-schema --help
Expected behavior
The binary should either be functional when called from the vendor/bin folder, or should not be packaged within this folder when installed to a project with composer.
Your environment
Any links to the CI logs or the repository, if any.
The text was updated successfully, but these errors were encountered: