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

Silence and ignore potential dos2unix conversion failures #270

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

eramongodb
Copy link
Contributor

@eramongodb eramongodb commented Feb 22, 2023

Motivated by #260 (comment).

The invocation of dos2unix is intended to workaround the as-of-yet unresolved issue with activation scripts generated by venv in Cygwin environments. Use of dos2unix as a simple workaround improves the viability of using recent Python binaries and the venv module over virtualenv.

Error handling was added to its invocation as part of #236. However, given this was observed to cause some friction during local development on Windows, this PR suggests silencing and ignoring potential dos2unix failures (as it had been done previously) in favor of allowing failure detection and handling in later stages of virtual environment use should they occur. This change is not expected to affect the scripts' behavior in Evergreen environments.

As a minor improvement, copied over rationale for the workaround from venv-utils.sh into all instances of invoking dos2unix for visibility.

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@eramongodb eramongodb merged commit ac86e5d into mongodb-labs:master Feb 23, 2023
@eramongodb eramongodb deleted the det-dos2unix branch February 23, 2023 20:11
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.

3 participants