Fix a build failure on Windows.
authorJoey Hess <joeyh@joeyh.name>
Wed, 7 Oct 2020 16:04:54 +0000 (12:04 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 7 Oct 2020 16:04:54 +0000 (12:04 -0400)
Annex/PidLock.hs
CHANGELOG
doc/bugs/Build_fails_with_type_error_on_Windows.mdwn
doc/bugs/Build_fails_with_type_error_on_Windows/comment_1_344be786838e34f65a6a5d1eec866c5f._comment [new file with mode: 0644]

index 7b17d4096fa7004703cccfe2f44fe57bf1499f01..6d3f0a7925c43bc3a2d7c94367bf41c2407bdc88 100644 (file)
@@ -67,7 +67,7 @@ pidLockChildProcess cmd ps f a = do
                let p' = p { env = Just ((v, PidF.pidLockEnvValue) : baseenv) }
                withCreateProcess p' a
 #else
-       gonopidlock
+       liftIO gonopidlock
 #endif
 
 {- Wrap around actions that may run a git-annex child process via a git
index 4801d7f0a90976ade940612254b4776c0af7cc40..b7e02c0b5c91dee42a9dfc465b5e8f372e24b497 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -43,6 +43,7 @@ git-annex (8.20200909) UNRELEASED; urgency=medium
   * runshell: Fix a edge case where rm errors were sent to stdout, which
     could confuse things parsing git-annex output.
   * runshell: Update files atomically when preparing to run git-annex.
+  * Fix a build failure on Windows.
 
  -- Joey Hess <id@joeyh.name>  Mon, 14 Sep 2020 18:34:37 -0400
 
index 6397e2c99338060bed6caa8f3fbafe500e344ae7..c7e1e8d652953c351624ade68c49bf14d4d765b4 100644 (file)
@@ -40,3 +40,5 @@ This happens when trying to build both the most recent commit (20c7e6c) and the
 
 - stack version: 2.3.3
 - Windows version: Windows 7 Enterprise, version 6.1
+
+> [[fixed|done]] --[[Joey]]
diff --git a/doc/bugs/Build_fails_with_type_error_on_Windows/comment_1_344be786838e34f65a6a5d1eec866c5f._comment b/doc/bugs/Build_fails_with_type_error_on_Windows/comment_1_344be786838e34f65a6a5d1eec866c5f._comment
new file mode 100644 (file)
index 0000000..a33122f
--- /dev/null
@@ -0,0 +1,12 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2020-10-07T16:03:04Z"
+ content="""
+Thanks for reporting this. I usually only find out when the Windows CI
+fails, but it's not been running for a while.
+
+I've fixed this particular problem, but don't have a windows build env
+handy to test the rest of the build. Please followup if there's a
+subsequent build failure.
+"""]]