You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix generator validation by using environment variable (#1923)
* Fix generator validation by using environment variable
The ARGV-based check for generator runtime was unreliable because Rails
can modify or clear ARGV during initialization. This caused version
validation to run during generator execution, before the react-on-rails
npm package was installed, resulting in validation errors.
This fix restores the ENV variable approach:
- Generator sets REACT_ON_RAILS_SKIP_VALIDATION=true at start
- Engine checks this ENV var first (before ARGV check)
- Generator clears ENV var in ensure block after completion
The ENV variable persists through Rails initialization, making it more
reliable than ARGV for detecting generator context.
Fixes failing CI tests in examples (3.2, minimum) and examples (3.4, latest)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add workflow_dispatch trigger to enable manual workflow runs
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments