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

don't overwrie python shims during install #358

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

g-arjones
Copy link
Contributor

Fixes #357

I had no idea autoproj would overwrite everything in .autoproj/bin.

@g-arjones g-arjones requested a review from doudou December 5, 2021 03:58
@doudou
Copy link
Member

doudou commented Dec 5, 2021

I have to admit I forgot about it when I reviewed the PR that creates the stub.

A safer way would be to detect whether the binstub is a ruby script generated by bundler and ignore everything else. They all have a "This file was generated by Bundler" comment, and a she-bang line with ruby in it.

@doudou
Copy link
Member

doudou commented Dec 5, 2021

Possibly, just the she-bang line would be enough tbh. This is a controlled folder, anything ruby has been generated by bundler.

@g-arjones
Copy link
Contributor Author

Done.

@g-arjones g-arjones merged commit dba515f into master Dec 6, 2021
@g-arjones g-arjones deleted the dont_overwrite_python_shims branch December 6, 2021 16:20
@caioaamaral
Copy link

Thanks for the fix! @g-arjones

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.

[Question] How to automatically set up the default Python interpreter?
3 participants