- Licensed under the GNU AGPL version 3 or higher.
-}
-{-# LANGUAGE CPP #-}
-
module Annex.Url (
withUrlOptions,
withUrlOptionsPromptingCreds,
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
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
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE BangPatterns #-}
-{-# LANGUAGE CPP #-}
module Utility.Url (
newManager,
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(..))
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,
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/
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,
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
benchmark: true
networkbsd: true
gitlfs: true
- httpclientrestricted: true
packages:
- '.'
resolver: lts-18.13
benchmark: false
networkbsd: true
gitlfs: true
- httpclientrestricted: true
packages:
- '.'
extra-deps: