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

Use stable branch for --edge option when not alpha #41837

Closed

Conversation

jonathanhefner
Copy link
Member

Follow-up to #41568.

If a user runs rails new --edge with an x.y.0.betaN or x.y.z.rcN version, they most likely want to track the x-y-stable branch rather than main branch. In some cases, the x-y-stable branch may not exist yet. In those cases, it is better to raise an error when bundle install fails, so that the user knows that the branch is not available.

@rails-bot rails-bot bot added the railties label Apr 4, 2021
Follow-up to rails#41568.

If a user runs `rails new --edge` with an `x.y.0.betaN` or `x.y.z.rcN`
version, they most likely want to track the `x-y-stable` branch rather
than `main` branch.  In some cases, the `x-y-stable` branch may not
exist yet.  In those cases, it is better to raise an error when `bundle
install` fails, so that the user knows that the branch is not available.
@rails-bot
Copy link

rails-bot bot commented Jul 4, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot bot added the stale label Jul 4, 2021
@zzak
Copy link
Member

zzak commented Jul 4, 2021

Will have to think about this some more, this introduces an interesting edge case. :trollface: I wasn't aware that the version of Rails should really matter when using --edge or --main. Also the documentation seems to be rather sparse here, unless I'm just looking in the wrong place.

@rails-bot rails-bot bot removed the stale label Jul 4, 2021
@rails-bot
Copy link

rails-bot bot commented Oct 2, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot bot added the stale label Oct 2, 2021
@rails-bot rails-bot bot closed this Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants