From 97d84da875cb3e15ad69c8d4bda6ca76342334f0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 15 Jan 2018 13:26:25 -0400 Subject: [PATCH] response --- ..._27fc7996be9cbff994fb19b0e213f28b._comment | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/todo/support_.netrc_for_fsck_--from_web/comment_1_27fc7996be9cbff994fb19b0e213f28b._comment 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 0000000000..7dfb25da97 --- /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 + to make netrc work with +http-conduit. +"""]]