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

Modified ci check to use binstubs or bundle exec if bunstub doesn't exist #210

Closed

Conversation

knovoselic
Copy link
Contributor

Correct way to run rake in rails 4 app is to use binstubs. If spring is
configured this also means that rake will load faster. If binstub for rake (bin/rake) doesn't exist, bundle exec rake will be used instead.

…xist

Correct way to run rake in rails 4 app is to use binstubs. If spring is
configured this also means that rake will load faster.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 98.65% when pulling 9ac45a6 on knovoselic:use_binstubs_or_bundle_exec into 6840a5e on jish:master.

@mpapis
Copy link
Collaborator

mpapis commented Apr 5, 2015

-1 using bin/ is not safe.

@mpapis
Copy link
Collaborator

mpapis commented Apr 5, 2015

if you want to load bundler use rubygemsbundled gem or stop using bundler and do the same with rubygems and single environment variable

@knovoselic
Copy link
Contributor Author

@mpapis I agree about bundle exec, I haven't thought this through. But why is using bin/ not safe?

@mpapis
Copy link
Collaborator

mpapis commented Apr 5, 2015

@knovoselic
Copy link
Contributor Author

@mpapis thanks. Running bin/rake isn't the same as adding bin to you $PATH. The only way that it can be exploited is if someone is going to commit malicious script into the repo, or am I missing something?

@mpapis
Copy link
Collaborator

mpapis commented Apr 7, 2015

malicious code is the only concern here, it's no difference if bin/ is in PATH or not, running scripts from there requires extra caution and should not be done in automated way

as for my earlier email instead of rubygemsbundled I meant rubgems-bundler - which makes this pull request obsolete as proper behaviour is achieved without any changes to pre-commit.

@knovoselic
Copy link
Contributor Author

Ok, thanks, I'll checkout rubygems-bundler.

@knovoselic knovoselic closed this Apr 7, 2015
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.

None yet

3 participants