Bug 208641 - webkitpy: Be explicit about SCM binary locations
Summary: webkitpy: Be explicit about SCM binary locations
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-05 07:53 PST by Jonathan Bedard
Modified: 2020-03-05 17:07 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.67 KB, patch)
2020-03-05 07:54 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (2.66 KB, patch)
2020-03-05 16:47 PST, Jonathan Bedard
ap: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2020-03-05 07:53:06 PST
We shouldn't be relying on the user's PATH to include git and svn binaries.
Comment 1 Jonathan Bedard 2020-03-05 07:54:29 PST
Created attachment 392568 [details]
Patch
Comment 2 Aakash Jain 2020-03-05 08:20:59 PST
What prompted this change, when this code has been working for years?
Comment 3 Aakash Jain 2020-03-05 08:22:56 PST
Comment on attachment 392568 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392568&action=review

> Tools/Scripts/webkitpy/common/checkout/scm/git.py:59
> +    executable_name = '/usr/bin/git'

is this location same on all the OSes?

> Tools/Scripts/webkitpy/common/checkout/scm/svn.py:79
> +    executable_name = '/usr/local/bin/svn'

Ditto.
Comment 4 Alexey Proskuryakov 2020-03-05 08:47:59 PST
Comment on attachment 392568 [details]
Patch

bot612:~ buildbot$ which svn
/usr/bin/svn

I think that the git stub is always in /usr/bin currently, but I don't know if that will never change.
Comment 5 Jonathan Bedard 2020-03-05 09:52:56 PST
(In reply to Alexey Proskuryakov from comment #4)
> Comment on attachment 392568 [details]
> Patch
> 
> bot612:~ buildbot$ which svn
> /usr/bin/svn
> 
> I think that the git stub is always in /usr/bin currently, but I don't know
> if that will never change.

Looks like I have an svn in /usr/bin/svn too, even though which svn points to a different one.
Comment 6 Jonathan Bedard 2020-03-05 16:47:00 PST
Created attachment 392649 [details]
Patch
Comment 7 Alexey Proskuryakov 2020-03-05 17:07:26 PST
Comment on attachment 392649 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392649&action=review

> Tools/Scripts/webkitpy/common/checkout/scm/svn.py:79
> +    executable_name = '/usr/bin/svn'

Pretty sure that /usr/bin/svn isn't guaranteed to exist either. Also, this code isn't about macOS only, or is it?