Skip to content

Allow rebuilding erb outside a Git checkout - #131

Open
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/gitless-gemspec
Open

Allow rebuilding erb outside a Git checkout#131
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/gitless-gemspec

Conversation

@OskarEichler

Copy link
Copy Markdown

Uses tracked files when Git is available and a filtered filesystem fallback otherwise, allowing the published source gem to be rebuilt without its missing .git directory.

Verified by building Git-checkout and Git-less archive gems with identical 21-file manifests and byte-identical outputs, plus the full compiled-native suite.

@k0kubun

k0kubun commented Sep 1, 2026

Copy link
Copy Markdown
Member

What's the use case? This code is what almost everybody has in their gemspec and this is usually not a problem for them. Clearly, we don't need this for the rubygems.org releases. Do you have your own self-hosted ERB releases and get rid of Git after cloning the repository with Git?

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