Skip to content

Avoid bundling untracked files in gem publishing#23

Merged
r-n-o merged 1 commit intomainfrom
rno/do-not-bundle-untracked-files
Jan 30, 2026
Merged

Avoid bundling untracked files in gem publishing#23
r-n-o merged 1 commit intomainfrom
rno/do-not-bundle-untracked-files

Conversation

@r-n-o
Copy link
Contributor

@r-n-o r-n-o commented Jan 30, 2026

Ok so, hilarious and sad bug: I have been publishing the Ruby SDK from my machine for a long time and because of that I have a local turnkey_client folder which contains previously built artifact.

The issue, now obvious in retrospect: we bundle EVERYTHING in turnkey_client to bundle the gem for release:

s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }

This means...the gems double their size every time we release. Recently we finally caught this because the size is ridiculous:

image

Turns out exponential growth hurts pretty quickly...

Fix: only bundle files git knows about!

Copy link
Contributor

@ethankonk ethankonk left a comment

Choose a reason for hiding this comment

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

🚢

@r-n-o r-n-o merged commit d05e93b into main Jan 30, 2026
3 checks passed
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