aboutsummaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2018-01-15 13:26:25 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2018-01-15 13:26:25 -0400
commit4e4e0b8ff8acaac708cad8e91331564728b8f17c (patch)
treeb43e11f5dd946e7d38451968a3d83789b46912a8 /doc/todo
parent373526832bd7a54b7a20c958e9e2cdb4ab70df1a (diff)
response
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/support_.netrc_for_fsck_--from_web/comment_1_27fc7996be9cbff994fb19b0e213f28b._comment29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/todo/support_.netrc_for_fsck_--from_web/comment_1_27fc7996be9cbff994fb19b0e213f28b._comment b/doc/todo/support_.netrc_for_fsck_--from_web/comment_1_27fc7996be9cbff994fb19b0e213f28b._comment
new file mode 100644
index 000000000..7dfb25da9
--- /dev/null
+++ b/doc/todo/support_.netrc_for_fsck_--from_web/comment_1_27fc7996be9cbff994fb19b0e213f28b._comment
@@ -0,0 +1,29 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2018-01-15T17:12:43Z"
+ content="""
+This is complicated because git-annex uses wget, curl, and http-conduit at
+different times. wget always uses .netrc, curl only uses it with a --netrc
+option (which git-annex does not currently provide although the user can),
+and http-conduit does not support .netrc.
+
+The choices of which git-annex uses when are constrained by the limitations
+of all three, and were chosen to make it work as well as possible. Also,
+curl and wget are not available in all installations of git-annex.
+
+As far as I can see, `git annex fsck --from web` makes the same wget/curl
+choice as `git annex get --from web` will make, typically wget, but
+curl if wget is not available or if run with --quiet.
+
+However, `git annex fsck --fast --from web` uses http-conduit by default.
+It could be changed to default to using curl (wget is not an option there).
+
+But, I'm kind of inclined toward moving away from using wget/curl at all,
+and toward http-conduit for all http urls. Thus avoiding the
+inconsistencies and various annoying behaviors of wget/curl. So, making a
+change that requires .netrc be supported going forward needs to be
+considered in that light. One possibility would be to use
+<https://hackage.haskell.org/package/netrc> to make netrc work with
+http-conduit.
+"""]]