Commit graph

37809 commits

Author SHA1 Message Date
Joey Hess
27329f0bb1
stack.yaml: Updated to lts-16.10
Needs stack version 2.3 to build, which has only recently made it into
debian unstable.

This commit was sponsored by Jake Vosloo on Patreon.
2020-08-24 14:11:37 -04:00
kyle
335aae2668 Added a comment 2020-08-20 20:34:26 +00:00
cardoso-neto
1fd55a89c7 Added a comment 2020-08-20 20:08:07 +00:00
cardoso-neto
c550663512 Added a comment: Rationale behind deleting and readding the symlinks on a move or rename 2020-08-20 18:36:47 +00:00
kyle
aab3a552f9 Added a comment: thanks 2020-08-19 17:54:11 +00:00
Joey Hess
d00ce82418
fix hang if external program is not available
startExternal' throws an exception, which left the externalAsync TMVar
empty, so the next try to use it would hang.
2020-08-19 12:20:07 -04:00
Joey Hess
168bf5e0c5
Merge branch 'master' of ssh://git-annex.branchable.com 2020-08-18 15:47:49 -04:00
kyle
ce59265a61 2020-08-18 17:44:01 +00:00
gitannex@56d80e101087518fccc08f4420216c4f61f80b7f
67cad93f82 2020-08-18 15:10:33 +00:00
Joey Hess
4c58433c48
avoid using MonadFail in ParseDuration
There's no instance for Either String, so that makes it not as useful as
it could be, so instead just return an Either String.
2020-08-15 15:53:35 -04:00
michal.kotowski1@1c7e62558e00f6965c27223d9dcff021fbc44eed
1740c4ef65 2020-08-15 19:01:57 +00:00
Joey Hess
ad64079b44
fix some warnings 2020-08-15 14:33:18 -04:00
Joey Hess
653652fdde
Merge branch 'master' of ssh://git-annex.branchable.com 2020-08-14 16:01:39 -04:00
Joey Hess
95d9a3cf8a
Merge branch 'asyncexternal' 2020-08-14 16:00:49 -04:00
Joey Hess
f241a3cd3d
Display warning when external special remote does not start up properly, or is not usable
I'm sure this used to work, but somewhere along the line something or
things (getCost and getAvailability I think, probably others)
started catching the exception and not displaying it. So, show warnings.
2020-08-14 15:38:31 -04:00
Joey Hess
05b2b46a82
async extension done 2020-08-14 15:24:34 -04:00
cardoso-neto
5a24dbc96e Added a comment: Having cutting edge packages with conda is not that straighforward. 2020-08-14 18:55:18 +00:00
Joey Hess
198b709561
switch to TMVars for thread safety when using the async extension
TVars were not updated atomically, which was ok when each thread got its
own External that was the only thing using these TVars. But, with the
async extension, several External instances can share the same var, so
it needs to be a TMVar to avoid read/write conflicts.

In particular, this makes PREPARE only be sent once.
2020-08-14 14:50:09 -04:00
Joey Hess
7da2d4dd2d
one jobid per thread
And, relay ERROR on to all listening threads.
2020-08-14 14:24:46 -04:00
Ilya_Shlyakhter
935b10d32d Added a comment 2020-08-14 02:59:12 +00:00
Joey Hess
72561563d9
rethought the async protocol some more
Moving jobid generation to the git-annex side lets it be simplified a
lot.

Note that it will also be possible to generate one jobid per connection,
rather than a new job per request. That will make overflow not an issue,
and will avoid some work, and will simplify some of the code.
2020-08-13 20:18:06 -04:00
cardoso-neto
9932a13ff9 Added a comment: Ugly message when installing git-annex through conda 2020-08-14 00:08:29 +00:00
Joey Hess
59cbb42ee2
async proto fully tested and working
Including with a concurrent capable remote program.

However, this is not quite ready to merge, there's a TODO in the code.
2020-08-13 16:22:11 -04:00
Joey Hess
7546e686a2
async proto basically working
Simplified the protocol by removing END-ASYNC.

There's a STM crash when a non-async protocol message is sent, which
needs to be fixed.
2020-08-13 15:52:12 -04:00
Joey Hess
0900bb2ca9
Merge branch 'master' of ssh://git-annex.branchable.com 2020-08-12 16:27:40 -04:00
Joey Hess
1ecbac4025
branch 2020-08-12 16:27:02 -04:00
Joey Hess
c9e8cafb98
further work on external async relay 2020-08-12 16:25:53 -04:00
Joey Hess
15706e6991
relayer receive loop is done
Receive loop looks right. Still need the send loop.

And, a complication is that some messages git-annex
sends need to be wrapped in REPLY_ASYNC, while others
do not. So will probably need to split externalSend
into two.
2020-08-12 15:56:58 -04:00
Joey Hess
06a4ab39fa
wip external remote async protocol extension 2020-08-12 15:17:53 -04:00
Joey Hess
7a21492f49
rethought this protocol again
Now that I've started implementation, I see it's really necessary that
every message the special remote sends use the protocol, otherwise
nasty edge cases abound.
2020-08-12 15:12:09 -04:00
Joey Hess
3f8c808bd7
generalized ExternalState to not be limited to a ExternalAddonProcess
Idea is for ASYNC extension, it will instead contain methods that communicate
with the thread that handles all communication with the external process.
2020-08-12 12:30:45 -04:00
Joey Hess
5f4228dc2b
types for async protocol extension
renamed AsyncMessage to ExceptionalMessage to make way for this new
extension.
2020-08-12 12:04:12 -04:00
git-annex@32dadd8082caa7c4ec9b28cf7dcf78e0d9fe58a8
c68bf6fc90 Bug: addurl --file not working as expected with youtube-dl 2020-08-12 13:09:02 +00:00
raf@4b53f20230978a98fc814b6e5565d9a30567a4f8
7be4eb71f2 removed 2020-08-12 12:54:46 +00:00
raf@4b53f20230978a98fc814b6e5565d9a30567a4f8
928787af63 2020-08-12 12:47:19 +00:00
cardoso-neto
2e5fe87ef0 Added a comment 2020-08-11 22:10:27 +00:00
Joey Hess
482422b9c5
Merge branch 'master' of ssh://git-annex.branchable.com 2020-08-11 16:42:37 -04:00
Joey Hess
ddf69bf5b8
draft async extension 2020-08-11 16:42:09 -04:00
cardoso-neto
d79bb64ea4 2020-08-11 20:23:25 +00:00
Ilya_Shlyakhter
14bbf17bb5 Added a comment: strange conda install behavior 2020-08-11 20:19:49 +00:00
cardoso-neto
46ca795432 Added a comment 2020-08-11 19:57:06 +00:00
Joey Hess
db1c6da84b
close 2020-08-11 14:01:22 -04:00
Ilya_Shlyakhter
b41f774451 added note on installing the standalone git-annex distribution with conda 2020-08-11 16:03:40 +00:00
Ilya_Shlyakhter
2df83e0511 Added a comment: checking the conda-forge recipe 2020-08-11 15:51:28 +00:00
cardoso-neto
1518e15123 Added a comment: Great tip about conda. 2020-08-11 13:23:00 +00:00
Ilya_Shlyakhter
042714fed7 Added a comment: please keep the hackage tarballs 2020-08-11 00:43:51 +00:00
Joey Hess
766a501fa1
add news item for git-annex 8.20200810 2020-08-10 19:22:55 -04:00
Joey Hess
3400b01887
comment 2020-08-10 18:46:44 -04:00
Joey Hess
aaa7cbdd75
Merge branch 'master' of ssh://git-annex.branchable.com 2020-08-10 18:42:00 -04:00
Joey Hess
ae954312ab
fix osxapp build issue
need to build git-annex 1st, otherwise otool can't run
2020-08-10 18:41:02 -04:00