-
-
Notifications
You must be signed in to change notification settings - Fork 197
Make tns doctor
command readonly
#4382
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
Comments
tns doctor
command READONLY tns doctor
command readonly
I should also note that because the things that tns doctor is trying to install fail, I'm never actually getting to see the report of |
For what it's worth, it looks like this exacerbated by another bug #4383 and that nativescript-cli is failing to actually report the results of doctor before proceeding to a bunch of system installation steps. I still think this feature would be helpful: I.e. |
Hey @cowboyd , Do you think setting |
I think it does work around the issue that we were having so it's not a problem anymore, but stylistically I think it's still off to entwine the separate concerns of diagnosis and remedy by default. I agree that it's a good idea to try and resolve the issues automatically for new users, but imagine if you ran Instead, you have I'd prefer the same separation of read/write behavior: |
Is your feature request related to a problem? Please describe.
We've been working with the nativescript CLI for the past few days trying to get a build up and running for iOS on CircleCI (circleci.com) using mostly the following resources as a reference.
The problem we keep running into is that when we log into the CI virtual machine to debug MacOS builds, the NativeScript CLI is always trying, seemingly whatever command we run, to throw up interactive prompts and write state and modify the system, when what we really need is a way to diagnose what exactly is going on.
For example, a call to
tns doctor
This makes it very difficult to debug dependency problems on CI for MacOS (and CI in general really)
For example, this is a transcript of the
tns doctor
command on a Circle mac vm.It goes on from there, updating homebrew, asking to install the android SDK.... In other words, I can't get a diagnosis of the system without changing the system I'm trying to diagnose. Which means that overall, it is not friendly to working with CI.
Describe the solution you'd like
tns doctor
or otherwise that, only reads system state and produces a list of potential problems with its configuration.tns init
ortns create
(and even in these cases have an option to disable it)Describe alternatives you've considered
I don't see that there is an alternative other than muddling through.
Additional context
I think NativeScript is a great project and that it could really benefit from a little more disentanglement of side-effects inside the CLI. Especially when it comes to using nativescript CLI as a general purpose build and deployment tool rather than just an individual developer tool.
Thank you for listening!
The text was updated successfully, but these errors were encountered: