Weird error when the target directory does not exist
stof opened this issue · 1 comments
stof commented
When the target directory does not exist, I get an error with a message which does not explain at all the actual source of the error:
[UnexpectedValueException]
Cannot create phar '/home/stof/src/Incenteev/am-tools/build/am-tools.phar',
file extension (or combination) not recognised or the directory does not exist
the config file looks like this:
{
"alias": "am-tools.phar",
"chmod": "0755",
"compactors": [
"Herrera\\Box\\Compactor\\Json",
"Herrera\\Box\\Compactor\\Php"
],
"directories": ["src"],
"finder": [
{
"name": "*.php",
"exclude": [
"Tests",
"tests"
],
"in": "vendor"
}
],
"git-commit": "git-commit",
"git-version": "git-version",
"datetime": "build-date",
"main": "am-tools",
"output": "build/am-tools.phar",
"stub": true
}
I suggest simply creating the directory if it does not exist
theofidry commented
For reference this has been fixed in box-project/box#27