remove vendored http-client-restricted
authorJoey Hess <joeyh@joeyh.name>
Tue, 22 Mar 2022 15:50:06 +0000 (11:50 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 22 Mar 2022 15:50:06 +0000 (11:50 -0400)
Removed vendored copy of http-client-restricted, and removed the
HttpClientRestricted build flag that avoided that dependency.

http-client-restricted is in Debian stable, and the i386ancient build also
uses it, so I think this vendored copy is no longer needed.

Sponsored-by: Noam Kremen on Patreon
Annex/Url.hs
CHANGELOG
Utility/Url.hs
debian/control
git-annex.cabal
stack.yaml
standalone/linux/stack-i386ancient.yaml

index 9a9eff24a52085432c1ef2a4430d3207e9dde8fb..303e98e798802b9c5f7a956f291d0844f07cc7f0 100644 (file)
@@ -6,8 +6,6 @@
  - Licensed under the GNU AGPL version 3 or higher.
  -}
 
-{-# LANGUAGE CPP #-}
-
 module Annex.Url (
        withUrlOptions,
        withUrlOptionsPromptingCreds,
@@ -36,11 +34,7 @@ import qualified Annex
 import qualified Utility.Url as U
 import Utility.Hash (IncrementalVerifier)
 import Utility.IPAddress
-#ifdef WITH_HTTP_CLIENT_RESTRICTED
 import Network.HTTP.Client.Restricted
-#else
-import Utility.HttpManagerRestricted
-#endif
 import Utility.Metered
 import Git.Credential
 import qualified BuildInfo
index cf4ac0303b894c153290ab0d7e60d9984c2f3012..8bc5aae986116237c3269e2af546ba85702a8a79 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -35,6 +35,8 @@ git-annex (10.20220223) UNRELEASED; urgency=medium
     standalone linux tarball or OSX app.
   * test: Runs tests in parallel to speed up the test suite.
   * test: Added --jobs option.
+  * Removed vendored copy of http-client-restricted, and removed the
+    HttpClientRestricted build flag that avoided that dependency.
 
  -- Joey Hess <id@joeyh.name>  Wed, 23 Feb 2022 14:14:09 -0400
 
index 54608d505c30f1e12100484cdcf84171615d9554..88a8e6a71366a3c06f73ba0ed30e8dbc5f567df2 100644 (file)
@@ -9,7 +9,6 @@
 {-# LANGUAGE RankNTypes #-}
 {-# LANGUAGE FlexibleContexts #-}
 {-# LANGUAGE BangPatterns #-}
-{-# LANGUAGE CPP #-}
 
 module Utility.Url (
        newManager,
@@ -46,11 +45,7 @@ module Utility.Url (
 import Common
 import Utility.Debug
 import Utility.Metered
-#ifdef WITH_HTTP_CLIENT_RESTRICTED
 import Network.HTTP.Client.Restricted
-#else
-import Utility.HttpManagerRestricted
-#endif
 import Utility.IPAddress
 import qualified Utility.RawFilePath as R
 import Utility.Hash (IncrementalVerifier(..))
index 34c0f16e4a8ab990219a0d7a7a92c17e0b7b2686..762052186a3672630927a91c7e3344a4490f174f 100644 (file)
@@ -56,6 +56,7 @@ Build-Depends:
        libghc-case-insensitive-dev,
        libghc-http-types-dev,
        libghc-http-conduit-dev,
+       libghc-http-client-restricted-dev,
        libghc-blaze-builder-dev,
        libghc-crypto-api-dev,
        libghc-network-multicast-dev,
index 0a015d44152aedc360ba5edaecb92a34ea9906b6..9d32ee349b4497ce4aea87b406756d1f1f169667 100644 (file)
@@ -292,10 +292,6 @@ Flag GitLfs
   Description: Build with git-lfs library (rather than vendored copy)
   Default: True
 
-Flag HttpClientRestricted
-  Description: Build with http-client-restricted library (rather than vendored copy)
-  Default: True
-
 source-repository head
   type: git
   location: git://git-annex.branchable.com/
@@ -348,6 +344,7 @@ Executable git-annex
    http-client-tls,
    http-types (>= 0.7),
    http-conduit (>= 2.3.0),
+   http-client-restricted (>= 0.0.2),
    conduit,
    time (>= 1.5.0),
    old-locale,
@@ -425,12 +422,6 @@ Executable git-annex
   else
     Other-Modules: Utility.GitLFS
   
-  if flag(HttpClientRestricted)
-    Build-Depends: http-client-restricted (>= 0.0.2)
-    CPP-Options: -DWITH_HTTP_CLIENT_RESTRICTED
-  else
-    Other-Modules: Utility.HttpManagerRestricted
-
   if flag(Assistant) && ! os(solaris) && ! os(gnu)
     Build-Depends: mountpoints
     CPP-Options: -DWITH_ASSISTANT
index 8dac87c1533c9c8391646af0d2ec875e296d4674..a37078e5ec2875465b77340ba1c6d473c0089c0a 100644 (file)
@@ -11,7 +11,6 @@ flags:
     benchmark: true
     networkbsd: true
     gitlfs: true
-    httpclientrestricted: true
 packages:
 - '.'
 resolver: lts-18.13
index fe713a81f7b22d2be35acd9361647c6908e9e19a..e8f2acecb8abac539dc628186b1ed4f5a0da7ffe 100644 (file)
@@ -11,7 +11,6 @@ flags:
     benchmark: false
     networkbsd: true
     gitlfs: true
-    httpclientrestricted: true
 packages:
 - '.'
 extra-deps: