Skip to content

Package only the library files in the gem - #4299

Open
corsonknowles wants to merge 1 commit into
DataDog:masterfrom
corsonknowles:dck/runtime-only-gem-files
Open

corsonknowles wants to merge 1 commit into
DataDog:masterfrom
corsonknowles:dck/runtime-only-gem-files

Conversation

@corsonknowles

Copy link
Copy Markdown

What does this PR do?

Packages only lib/ plus the README, changelog, license and notice files.

Today spec.files is every tracked file minus a few test directories, and spec.test_files adds spec/ back, so every install also unpacks the example scripts, the bundled OpenAPI schemas, CI config and dev tooling. In the 2.60.0 package that is 2,341 of 11,708 files, or 11.9 MB of 53 MB unpacked.

On master this drops 2,753 files: examples/ (2,704), .github/ (23), spec/ (11), the two .generator/schemas/*/openapi.yaml files, and root dev files such as Rakefile, Gemfile, .rubocop.yml and run-tests.sh.

Additional Notes

Follow-up to #3766, which kept generated-test/ out of the package.

Checked with gem build: the file list goes from 13,906 to 11,153 entries. Every file under lib/ and every license and notice file is still packaged, nothing is added, and require_paths is unchanged. The gem has no executables.

Review checklist

  • This PR does not rely on API client schema changes.

Examples, CI config, the bundled OpenAPI schemas and dev tooling were
shipped with every install: 2,753 of 13,906 files on master.
@corsonknowles
corsonknowles requested review from a team as code owners December 6, 2026 05:24

This branch has not been deployed

No deployments
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.

1 participant