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

Install mercurial via OS package manager #645

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Oct 6, 2024

Installing mercurial via pip on Windows fails due to a missing dependency. But the chocolatey package works, so let's use that.
Actually, let's use OS-specific package managers on all platforms to install mercurial (like we already do for fossil).
The spec suite still fails due to #639 (comment), but that's a different issue (#639). This patch makes it even work at all.

Resolves #640

@@ -36,6 +36,7 @@ jobs:

- name: Install Mercurial
run: pip install mercurial
if: ${{ matrix.os != 'windows-2022' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Using startsWith might be more versatile.

Copy link
Contributor

@ysbaddaden ysbaddaden Oct 7, 2024

Choose a reason for hiding this comment

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

question (nonblocking): we don't need python and pip anymore on Windows, do we? In fact, why not always install fossil & mercurial from apt, homebrew or choco?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Applied!

@straight-shoota straight-shoota changed the title Install hg via choco Install mercurial via OS package manager Oct 7, 2024
@straight-shoota straight-shoota merged commit 0f7cabe into master Oct 7, 2024
13 of 15 checks passed
@straight-shoota straight-shoota deleted the infra/skip-mercurial-windows branch October 7, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pip install mercurial is broken on Windows CI
3 participants