Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: optionally allow to push to other repositories #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fauno
Copy link

@fauno fauno commented Jan 8, 2025

if you're pushing to your own repository, these gemspec options would prevent it, so i added the --unsafe flag

@luislavena
Copy link
Owner

Hello @fauno, thank you for your PR. Would you mind provide more context/background on this?

Thank you.

@fauno
Copy link
Author

fauno commented Jan 9, 2025

Sure! We're pre-compiling gems from rubygems.org and pushing them to our own private repository. Gems that have these options enabled on their gemspec would fail.

The docs recommend setting this to prevent accidentally pushing private gems to rubygems.org, but I've found some gems that set rubygems.org as the only allowed repository, so gem push after gem compile was being prevented.

https://guides.rubygems.org/publishing/#serving-your-own-gems

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