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

Installer should work in CI (noninteractive) environment #709

Open
la-ruby opened this issue Jun 7, 2024 · 1 comment
Open

Installer should work in CI (noninteractive) environment #709

la-ruby opened this issue Jun 7, 2024 · 1 comment

Comments

@la-ruby
Copy link

la-ruby commented Jun 7, 2024

It would be nice if this worked in CI environment / github actions:

./bin/rails stimulus_reflex:install
bin/rails aborted!
NoMethodError: undefined method `chomp' for nil (NoMethodError)
      input = Rails.env.test? ? "tmp/app/javascript" : $stdin.gets.chomp
                                                                  ^^^^^^
Tasks: TOP => stimulus_reflex:install
(See full trace by running task with --trace)
✨ Installing StimulusReflex and CableReady ✨
If you have any setup issues, please consult https://docs.stimulusreflex.com/hello-world/setup
or get help on Discord: https://discord.gg/stimulus-reflex. We are here for you. 💙
We recommend running git commit before proceeding. A diff will be generated at the end.
Where do JavaScript files live in your app? Our best guess is: app/javascript 🤔
Press enter to accept this, or type a different path.
> 
Error: Process completed with exit code 1.
@marcoroth
Copy link
Member

marcoroth commented Dec 15, 2024

Hey @la-ruby, thanks for opening this issue!

I was wondering what the use-case for this might be, would you mind to elaborate? I'd be happy to accept a PR to improves this if you want to have a go.

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