Skip to content

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