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

Copy Gemfile.lock on --init #25

Merged
merged 2 commits into from
Oct 23, 2021
Merged

Conversation

fbuys
Copy link

@fbuys fbuys commented Oct 22, 2021

This closes: #24

We want to make sure that users start with a Gemfile.next.lock that are not much different from their existing Gemfile.lock.
This prevents major version jump upon using rails_next for the first time with an outdated rails project.

We initialize the Gemfile.next.lock by copying the content of the
existing Gemfile.lock. This prevents major version jumps when we use
this gem without an initial Gemfile.next.lock.

This commit closes: #24

Execute:

$ next --init
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fbuys I think it would be great if you can add what will happen after you execute next --init -- I realize it is documented above in line 86.

I just think it would be great to add the reasoning behind starting with Gemfile.lock as the base lockfile (as explained by @arielj in our internal communications) 😄

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I hesitated to do that because the existing README seems pretty short.

So users are aware that the --init will also create a Gemfile.next.lock.
@fbuys fbuys force-pushed the fbuys/24-copy-gemfile-lock-file branch from 87e6f64 to 2afde42 Compare October 22, 2021 20:39
@fbuys fbuys requested review from etagwerker and arielj October 22, 2021 20:46
Copy link
Member

@etagwerker etagwerker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fbuys Looks good, thanks!

@etagwerker etagwerker merged commit 9f17856 into main Oct 23, 2021
@etagwerker etagwerker deleted the fbuys/24-copy-gemfile-lock-file branch October 23, 2021 01:17
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

Successfully merging this pull request may close these issues.

[FEATURE] copy the Gemfile.lock as Gemfile.next.lock before running
2 participants