ashfurrow / danger-ruby-swiftlint

A Danger plugin for SwiftLint.
https://rubygems.org/gems/danger-swiftlint
MIT License
203 stars 81 forks source link

Can't install gem on a build agent behind firewall #106

Closed mgrebenets closed 6 years ago

mgrebenets commented 6 years ago

Hi

In my case I can install Ruby gems on CI, we have a rubygems.org mirror setup via Artifactory. But I cannot install native extensions like for this particular gem, because it tries to install native extension, which involves downloading SwiftLint from GitHub: 'https://github.com/realm/SwiftLint'. This is where it fails for me. This is unfortunate, but this is what we have to deal with.

In any case, we plan to use SwiftLint Danger plugin combined with swiftlint.binary_path, so as a matter of fact we don't need the pre-packaged SwiftLint to be installed at all.

Is there a way to install the gem without native extensions? Could it be possible to install just the Ruby part of the gem, but not the bundled SwiftLint executable?

E.g. in a way how SWIFTLINT_VERSION is exposed, can there be another env var that skips the whole SwiftLint installation steps completely? E.g. SKIP_SWIFTLINT_INSTALL?

ashfurrow commented 6 years ago

Should be fixed by #107, released as 0.17.2. Thanks!