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

Use hgpath instead of "hg" to fix --HEAD hg builds #3643

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented Jan 8, 2018

Fixes #3628.
With environment filtering, hg was no longer in the path, so make sure to provide the path when calling hg commands (the other functions in download_strategy use hgpath). last_commit was the source of the problem in #3628, but I fixed source_modified_time as well since it had the same problem. I didn't see any other functions using "hg".

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew tests with your changes locally?

Fixes Homebrew#3628.
With environment filtering, hg was no longer in the path,
so make sure to provide the path when calling hg commands.
last_commit was the source of the problem in Homebrew#3628
but I fixed source_modified_time as well.
I didn't see any others with this problem.
@ilovezfs
Copy link
Contributor

ilovezfs commented Jan 8, 2018

This works for me in testing @scpeters! The commit message is slightly non-standard, though.

@MikeMcQuaid MikeMcQuaid merged commit 13998f5 into Homebrew:master Jan 8, 2018
@MikeMcQuaid
Copy link
Member

Nice catch @scpeters, thanks again for a great PR!

@scpeters
Copy link
Member Author

scpeters commented Jan 8, 2018

@ilovezfs I guess it would have been better if it started with "download_strategy:"?

I was getting sleepy. I'll try to remember next time.

@scpeters scpeters deleted the hgpath_3628 branch January 8, 2018 17:11
@ilovezfs
Copy link
Contributor

ilovezfs commented Jan 8, 2018

@scpeters no worries. Yup "download_strategy:"

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using --HEAD with mercurial ends up with "Empty installation" error
3 participants