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

BF: Don't modify PATH if not necessary #5035

Merged
merged 2 commits into from Oct 14, 2020
Merged

Conversation

bpoldrack
Copy link
Member

PATH modification in Runner classes is meant to make sure we use
bundled w/ annex git executable (except when instructed otherwise
by DATALAD_USE_DEFAULT_GIT). However, don't mess with PATH when
what we find to be bundled is the same thing that is found with
unmodified PATH anyway. This is particularly important when the
"bundeled" location is /usr/bin and we are running in a virtual
environment, leading to that PATH overruling the venv.

Closes #5030 and by extension #5024 (when combined with #5026)

PATH modification in Runner classes is meant to make sure we use
bundled w/ annex git executable (except when instructed otherwise
by DATALAD_USE_DEFAULT_GIT). However, don't mess with PATH when
what we find to be bundled is the same thing that is found with
unmodified PATH anyway. This is particularly important when the
'bundeled' location is /usr/bin and we are running in a virtual
environment, leading to that PATH overruling the venv.

(Closes datalad#5030)
@codecov
Copy link

codecov bot commented Oct 14, 2020

Codecov Report

Merging #5035 into maint will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##            maint    #5035   +/-   ##
=======================================
  Coverage   89.91%   89.91%           
=======================================
  Files         292      292           
  Lines       40742    40743    +1     
=======================================
+ Hits        36635    36636    +1     
  Misses       4107     4107           
Impacted Files Coverage Δ
datalad/cmd.py 93.71% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 084829b...908d3e8. Read the comment docs.

Copy link
Contributor

@kyleam kyleam left a comment

Choose a reason for hiding this comment

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

Thanks for the analysis. Make sense to me.

datalad/cmd.py Outdated Show resolved Hide resolved
@kyleam kyleam merged commit c8dd728 into datalad:maint Oct 14, 2020
@yarikoptic yarikoptic added this to the 0.13.5 milestone Dec 12, 2020
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