Skip to content

Commit f278bdb

Browse files
authored
SF-1059 Change default path for hg executable to /usr/bin/hg (#3593)
1 parent 8ce98ca commit f278bdb

File tree

7 files changed

+5
-11
lines changed

7 files changed

+5
-11
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,6 @@ jobs:
479479
npx playwright install
480480
481481
- name: Run E2E tests
482-
env:
483-
HG_PATH: /usr/bin/hg
484482
run: ./src/SIL.XForge.Scripture/ClientApp/e2e/pre_merge_ci.sh
485483

486484
- name: Publish test results

deploy/vagrant/sfdev/base/provision.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,6 @@ cd ~/code/web-xforge && dotnet clean
599599
# Undo temporary changes and/or clean up
600600
cd ~/code/web-xforge && git checkout -- .config/dotnet-tools.json
601601
602-
# Use system hg.
603-
tee --append ~/.pam_environment >/dev/null <<<'HG_PATH=/usr/bin/hg'
604-
605602
# Docker
606603
607604
# https://docs.docker.com/desktop/install/linux-install/

src/SIL.XForge.Scripture/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ RUN apt-get install -y \
2424
nodejs \
2525
&& rm -rf /var/lib/apt/lists/*
2626
# Setup Scripture Forge Paths
27-
RUN ln -s /usr/bin/hg /usr/local/bin/hg \
28-
&& mkdir -p /var/lib/scriptureforge/sync \
27+
RUN mkdir -p /var/lib/scriptureforge/sync \
2928
&& mkdir -p /var/lib/scriptureforge/audio \
3029
&& mkdir -p /var/lib/scriptureforge/training-data \
3130
&& mkdir -p /var/lib/xforge/avatars \

src/SIL.XForge.Scripture/appsettings.Development.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"SecurePort": 5005
3939
},
4040
"Paratext": {
41-
"HgExe": "/usr/local/bin/hg"
41+
"HgExe": "/usr/bin/hg"
4242
},
4343
"Serval": {
4444
"ApiServer": "https://qa.serval-api.org",

src/SIL.XForge.Scripture/appsettings.Testing.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"BackendClientId": "D7bF2gHmMVAaC67a1GF6f0DdQdRpqQwA"
2727
},
2828
"Paratext": {
29-
"HgExe": "/usr/local/bin/hg"
29+
"HgExe": "/usr/bin/hg"
3030
},
3131
"Serval": {
3232
"ApiServer": "https://qa.serval-api.org",

tools/CommitGenerator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
string secondVersion = await File.ReadAllTextAsync(secondVersionFileName);
4242

4343
// Set up Mercurial
44-
string customHgPath = Environment.GetEnvironmentVariable("HG_PATH") ?? "/usr/local/bin/hg";
44+
string customHgPath = Environment.GetEnvironmentVariable("HG_PATH") ?? "/usr/bin/hg";
4545
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
4646
{
4747
customHgPath = Path.GetExtension(customHgPath.ToLowerInvariant()) != ".exe" ? customHgPath + ".exe" : customHgPath;

tools/RepoInfo/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
}
6262

6363
// Set up Mercurial
64-
string customHgPath = Environment.GetEnvironmentVariable("HG_PATH") ?? "/usr/local/bin/hg";
64+
string customHgPath = Environment.GetEnvironmentVariable("HG_PATH") ?? "/usr/bin/hg";
6565
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
6666
{
6767
customHgPath = Path.GetExtension(customHgPath.ToLowerInvariant()) != ".exe" ? customHgPath + ".exe" : customHgPath;

0 commit comments

Comments
 (0)