Skip to content

Include Gemfile.lock in the repo#135

Merged
kmyk merged 1 commit intonoshi91:gh-pagesfrom
MiSawa:add-gemfile-lock
Mar 31, 2021
Merged

Include Gemfile.lock in the repo#135
kmyk merged 1 commit intonoshi91:gh-pagesfrom
MiSawa:add-gemfile-lock

Conversation

@MiSawa
Copy link
Copy Markdown
Collaborator

@MiSawa MiSawa commented Mar 31, 2021

Gemfile.lock は、各々がローカルに持っているライブラリのバージョンが等しいことを保証するのに必要なので、リポジトリに含むのがよいと思います。
例えばjekyll のチュートリアル には

GemfileとGemfile.lockはどちらもチェックインが必要です。

とあります。

Copy link
Copy Markdown
Collaborator

@kmyk kmyk left a comment

Choose a reason for hiding this comment

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

LGTM

ところで本番環境との差異も気になりますが、GitHub Pages は Gemfile も Gemfile.lock も見ないとのことでした。
https://stackoverflow.com/questions/56261127/is-the-gemfile-lock-file-needed-in-a-jekyll-site-hosted-with-github-pages

@kmyk kmyk merged commit 3f0bef7 into noshi91:gh-pages Mar 31, 2021
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.

2 participants