Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Support for newest nightly (fixes #27)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Dec 8, 2016
1 parent 3d60929 commit e77c8be
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 21 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
@@ -1,3 +1,7 @@
## 0.14.4

* Support latest Stackage Nightly [#27](https://github.com/fpco/stackage-curator/issues/27)

## 0.14.3

* Much improved logic for calculating if a package needs to be rebuilt
Expand Down
2 changes: 1 addition & 1 deletion Stackage/Curator/UploadDocs.hs
Expand Up @@ -82,7 +82,7 @@ uploadDocs :: FilePath -- ^ directory containing docs
-> Text -- ^ bucket name
-> IO ()
uploadDocs input' bundleFile name bucket = do
env <- newEnv NorthVirginia Discover
env <- newEnv Discover

unlessM (Dir.doesDirectoryExist input') $ error $ "Could not find directory: " ++ show input'
input <- fmap (</> "") $ Dir.canonicalizePath input'
Expand Down
2 changes: 1 addition & 1 deletion Stackage/Curator/UploadIndex.hs
Expand Up @@ -27,7 +27,7 @@ uploadIndex
-> Text -- ^ key prefix
-> IO ()
uploadIndex bpFile target bucket prefix = do
env <- newEnv NorthVirginia Discover
env <- newEnv Discover
bp <- decodeFileEither bpFile >>= either throwM return
let toInclude = getToInclude bp
runResourceT $ do
Expand Down
3 changes: 1 addition & 2 deletions Stackage/Upload.hs
Expand Up @@ -35,15 +35,14 @@ uploadHackageDistro
-> Manager
-> IO (Response LByteString)
uploadHackageDistro name bp username password manager = do
req1 <- parseUrlThrow $ concat
req1 <- parseRequest $ concat
[ "https://hackage.haskell.org/distro/"
, unpack name
, "/packages.csv"
]
let req2 = req1
{ requestHeaders = [("Content-Type", "text/csv")]
, requestBody = RequestBodyLBS csv
, checkStatus = \_ _ _ -> Nothing
, method = "PUT"
}
httpLbs (applyBasicAuth username password req2) manager
Expand Down
9 changes: 5 additions & 4 deletions stack.yaml
@@ -1,4 +1,5 @@
resolver: lts-7.3
flags:
stackage-curator:
monad_unlift_0_2: true
resolver: nightly-2016-12-07
extra-deps:
- store-0.3
- store-core-0.3
- th-utilities-0.2.0.1
17 changes: 4 additions & 13 deletions stackage-curator.cabal
@@ -1,5 +1,5 @@
name: stackage-curator
version: 0.14.3
version: 0.14.4
synopsis: Tools for curating Stackage bundles
description: Please see <http://www.stackage.org/package/stackage-curator> for a description and documentation.
homepage: https://github.com/fpco/stackage-curator
Expand All @@ -14,11 +14,6 @@ extra-source-files: README.md
ChangeLog.md
test/test-build-constraints.yaml

flag monad_unlift_0_2
default: True
manual: False
description: Use monad-unlift 0.2 or newer

library
default-language: Haskell2010
other-extensions: TemplateHaskell
Expand Down Expand Up @@ -66,7 +61,7 @@ library
, aeson
, yaml
, unix-compat
, http-client >= 0.4.30
, http-client >= 0.5
, http-conduit
, http-client-tls
, temporary
Expand All @@ -82,7 +77,7 @@ library
, blaze-html
, html-conduit
, mime-types
, amazonka >= 1.1
, amazonka >= 1.4.5
, amazonka-s3
, amazonka-core
, xml-types
Expand All @@ -99,12 +94,8 @@ library
, exceptions
, unordered-containers
, hashable

if flag(monad_unlift_0_2)
build-depends: monad-unlift >= 0.2
, monad-unlift >= 0.2
, monad-unlift-ref >= 0.2
else
build-depends: monad-unlift >= 0.1.1 && < 0.2

executable stackage-curator
default-language: Haskell2010
Expand Down

0 comments on commit e77c8be

Please sign in to comment.