Skip to content
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

dcli install fails with stat command #139

Closed
bsutton opened this issue May 2, 2021 · 3 comments
Closed

dcli install fails with stat command #139

bsutton opened this issue May 2, 2021 · 3 comments

Comments

@bsutton
Copy link
Collaborator

bsutton commented May 2, 2021

when running dcli install on some linux systems it fails with:



Creating Template directory in: /home/bsutton/.dcli/templates.

Creating Cache directory in: /home/bsutton/.dcli/cache.

Creating bin directory in: /home/bsutton/.dcli/bin.

dcli tab completion installed. Restart your terminal to activate it.
dcli found in : /home/bsutton/.pub-cache/bin/dcli.
RunException: stat -L -c %a %G %U /usr/bin/dcli 
exit: 1
reason: The command [stat] with args [-L, -c, %a %G %U, /usr/bin/dcli] failed with exitCode: 1 
Stacktrace: wait_for_ex.dart : waitForEx : 47
runnable_process.dart : RunnableProcess.processUntilExit : 408
runnable_process.dart : RunnableProcess.run : 161
run.dart : start : 227
string_as_process.dart : StringAsProcess.toList : 276
string_as_process.dart : StringAsProcess.firstLine : 341
is.dart : _Is._checkPermission : 161
is.dart : _Is.isWritable : 135
is.dart : isWritable : 84
install.dart : InstallCommand.symlinkDCli : 228
@jayvdb
Copy link

jayvdb commented May 4, 2021

I am encountering this on mac, which /usr/bin/stat is stat [-FLnq] [-f format | -l | -r | -s | -x] [-t timefmt] [file ...]

In this case gstat is likely needed from brew.

@bsutton
Copy link
Collaborator Author

bsutton commented May 4, 2021 via email

@bsutton
Copy link
Collaborator Author

bsutton commented Dec 12, 2021

This issue has now been resolved on both linux and macos.
We are now using the posix api stat rather than spawning the stat command.

@bsutton bsutton closed this as completed Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants