-
Notifications
You must be signed in to change notification settings - Fork 65
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
add --no-exec option. it skips exec after installation #34
add --no-exec option. it skips exec after installation #34
Conversation
I wonder if our decision to execute script with Not sure if this is ok, but maybe we could define our own entries in |
There was a good reason to run the script immediately, I just forget what it was. Was it just that we think an installer should finish downloading something before it claims success? There's also the potential that if you say something is installed, somebody might believe you and plan on using the command later when they don't have internet connectivity.
I'm not sure what you mean there. I do wish the sbt-launcher itself had some built in dry-run functionality, that simply fetched dependencies without calling the target app. I guess one way to solve this, properly, would be to send a pull-request for that feature to Mark. Alternatively, we could provide some better rigging for conscript apps that handles |
So
This way each app authors can provide their own dry-run parameter without telling the end user to install their app with some custom command line option. |
As I see it, the problem is that app authors do not expect to have to do anything in particular for conscript (and we don't tell them otherwise). I don't think they want to be able to specify another kind of dry-run parameter; they just don't want to have to deal with it at all. It's probably a bit easier for them to say "dry-run: false" in the launch config than it is for them to implement a dry run, but we decided previously that that produces a poor user experience. It's worth mentioning that the conscript launchconfig creator and the app author are not necessarily the same person. Maybe the app author doesn't have time to implement any kind of dry-run parameter, but the person writing the launch config is more motivated. It's also easier to update the launch config than it is to release an app update. Is there something we can pass to screpl to cause it to bail out? |
One more quick comment, maybe we should assume |
You mean like catch the error and not print the error message out to the end user, but print some friendlier message? That could be a nice sweet spot of usability. |
No, but for Setsu's case, the program doesn't return until the user inputs.. |
Right. I meant, don't call exec at all unless there is configuration to say that the app supports the parameter. That is, I'm considering reversing my position. It's pretty confusing. :) |
Ok. Let's open a case for that and close this pull request. |
Sounds good. |
Hi Nathan,
This changes adds --no-exec option.
conscript executes launchconfig after install. ( https://github.com/n8han/conscript/blob/master/src/main/scala/apply.scala#L35 )
installing xsbt, conscript launches screpl. screpl waits user inputs.
This changes allows to skip exec after installation.
I don't know this changes right fix or not...
Thanks,
Setsu