File tree Expand file tree Collapse file tree 3 files changed +23
-20
lines changed Expand file tree Collapse file tree 3 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 1
1
cabal-version : 1.12
2
2
3
- -- This file has been generated from package.yaml by hpack version 0.35.2 .
3
+ -- This file has been generated from package.yaml by hpack version 0.36.1 .
4
4
--
5
5
-- see: https://github.com/sol/hpack
6
6
@@ -57,7 +57,7 @@ executable casa-curator
57
57
TypeOperators
58
58
ghc-options : -optP-Wno-nonportable-include-path -threaded
59
59
build-depends :
60
- aeson
60
+ aeson < 2.2
61
61
, base >= 4.10 && < 5
62
62
, bytestring
63
63
, casa-client
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ executables:
56
56
- text
57
57
- optparse-simple
58
58
- containers
59
- - aeson
59
+ # aeson 2.2 needs attoparsec-aeson
60
+ - aeson < 2.2
60
61
- http-conduit
61
62
- syb
62
63
- persistent-sqlite
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import qualified RIO.ByteString.Lazy as BL
17
17
import RIO.Process
18
18
import RIO.FilePath ((</>) )
19
19
20
+ import System.Environment.Blank (getEnvDefault )
21
+
20
22
import qualified Codec.Archive.Tar as Tar
21
23
import qualified Codec.Archive.Tar.Entry as Tar
22
24
@@ -42,26 +44,26 @@ uploadDocs input' name bucket = do
42
44
D. createDirectoryIfMissing True $ input </> " hoogle"
43
45
BL. writeFile (input </> " hoogle" </> " orig.tar" ) hooglesLBS
44
46
47
+ -- maybe default to --quiet or "--only-show-errors"?
48
+ curator_AWS_OPTS <- liftIO $ fmap words $
49
+ getEnvDefault " CURATOR_AWS_OPTIONS" " "
45
50
logInfo " Shelling out to AWS CLI to upload docs"
46
51
proc
47
52
" time" -- added for https://github.com/commercialhaskell/stackage-infrastructure/issues/4
48
- (
49
- " aws"
50
- : -- added for https://github.com/commercialhaskell/stackage-infrastructure/issues/4
51
- [
52
- " s3"
53
- , " cp"
54
- -- -- commented out to debug https://github.com/commercialhaskell/stackage-infrastructure/issues/4
55
- -- , "--only-show-errors"
56
- , " --recursive"
57
- , " --acl"
58
- , " public-read"
59
- , " --cache-control"
60
- , " maxage=31536000"
61
- , input
62
- , T. unpack $ " s3://" <> bucket <> " /" <> name <> " /"
63
- ]
64
- ) -- added for https://github.com/commercialhaskell/stackage-infrastructure/issues/4
53
+ ( [ " aws"
54
+ , " s3"
55
+ , " cp" ]
56
+ ++
57
+ curator_AWS_OPTS
58
+ ++
59
+ [ " --recursive"
60
+ , " --acl"
61
+ , " public-read"
62
+ , " --cache-control"
63
+ , " maxage=31536000"
64
+ , input
65
+ , T. unpack $ " s3://" <> bucket <> " /" <> name <> " /"
66
+ ] )
65
67
runProcess_
66
68
67
69
-- | Create a TAR entry for each Hoogle txt file. Unfortunately doesn't stream.
You can’t perform that action at this time.
0 commit comments