-
Notifications
You must be signed in to change notification settings - Fork 80
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
Having Fallback Dirs Checked for SwiftLint Binary #156
Comments
That would complicate things slightly, and it's already a bit complex 😅 We actually install the danger-ruby-swiftlint/ext/swiftlint/Rakefile Lines 6 to 23 in d1ac19b
But we also allow users to specify a path to their own installation:
I think that your suggestion, of having a list of paths to check for a |
Ahhh thats maybe the reason. In our case the GEMs are cached on Bitrise CI... Maybe that prevents the installation. The thing is on our CI this tool is not found under /usr/local/bin.But not sure. The reason might also be that Bitrise hasn't have swiftlint installed by default. At the moment we install gems first and then swiftlint after that via mint. Could that be the reason 🤔 The reason for all of this is that this suddenly stopped working recently and we had a hard time then to manually install it. |
I'm not a ruby expert but as it looks like the plugin searches in the plugin/gem directory for the swiftlint binary:
danger-ruby-swiftlint/ext/swiftlint/swiftlint.rb
Line 66 in d1ac19b
Usually people install the binary using Homebrew or Mint. In both cases the binary will be stored/linked in
/usr/local/bin
. What if we implement a list of paths that get checked for the binary. The one with a match is returned. We could prioritize the current default path if desired, so that all the current implementations don't have to change anything. As second option I would like to check/user/local/bin
.What do you think?
The text was updated successfully, but these errors were encountered: