Skip to content

chore: Add Gemfile.lock to google-cloud-spanner#238

Open
torreypayne wants to merge 2 commits into
googleapis:mainfrom
torreypayne:add-gemfile-lock-spanner
Open

chore: Add Gemfile.lock to google-cloud-spanner#238
torreypayne wants to merge 2 commits into
googleapis:mainfrom
torreypayne:add-gemfile-lock-spanner

Conversation

@torreypayne
Copy link
Copy Markdown
Member

Add Gemfile.lock to the handwritten library to ensure consistent dependency versions in development and CI. Update CONTRIBUTING.md to remove the incorrect root-level bundle install instruction and add a note about managing Gemfile.lock.

@torreypayne torreypayne requested a review from a team as a code owner June 4, 2026 18:58
@torreypayne torreypayne changed the title feat: Add Gemfile.lock to google-cloud-spanner chore: Add Gemfile.lock to google-cloud-spanner Jun 4, 2026
@torreypayne torreypayne force-pushed the add-gemfile-lock-spanner branch from 8f16873 to 21502a0 Compare June 4, 2026 20:05
Copy link
Copy Markdown
Contributor

@aandreassa aandreassa left a comment

Choose a reason for hiding this comment

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

Looks great! Can you pls check out this comment? #237 (review)

I think we can exclude the file from Rubygems publication just to be safe.

Add Gemfile.lock to the handwritten library to ensure consistent dependency versions in development and CI. Update CONTRIBUTING.md to remove the incorrect root-level bundle install instruction and add a note about managing Gemfile.lock. Fix NameError in doctest_helper.rb by explicitly requiring 'ostruct'. Update gemspec to reject Gemfile.lock from package files.

Addresses b/509981628
@torreypayne torreypayne force-pushed the add-gemfile-lock-spanner branch from 21502a0 to fecddaf Compare June 5, 2026 21:20

gem.files = `git ls-files -- lib/*`.split("\n") +
["OVERVIEW.md", "AUTHENTICATION.md", "LOGGING.md", "CONTRIBUTING.md", "TROUBLESHOOTING.md", "CHANGELOG.md", "CODE_OF_CONDUCT.md", "LICENSE", ".yardopts"]
gem.files.reject! { |f| f.end_with? "Gemfile.lock" }
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@aandreassa LMK how this looks (.end_with? should address any path-matching issues)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

FWIW I ran gem build locally and it wasn't being included anyways, but still a good call to include this:

!!! GEM FILES BEFORE REJECT: []
!!! ALL GEM FILES BEFORE REJECT COUNT: 66
!!! GEM FILES AFTER REJECT: []
!!! ALL GEM FILES AFTER REJECT COUNT: 66

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for checking it! Then we can probably go either way for this PR, up to you.

We should probably exclude going forward if it will make the migration / configs simpler.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ya let's keep the exclusion!

@torreypayne torreypayne requested a review from aandreassa June 5, 2026 21:36

gem.files = `git ls-files -- lib/*`.split("\n") +
["OVERVIEW.md", "AUTHENTICATION.md", "LOGGING.md", "CONTRIBUTING.md", "TROUBLESHOOTING.md", "CHANGELOG.md", "CODE_OF_CONDUCT.md", "LICENSE", ".yardopts"]
gem.files.reject! { |f| f.end_with? "Gemfile.lock" }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for checking it! Then we can probably go either way for this PR, up to you.

We should probably exclude going forward if it will make the migration / configs simpler.

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