Commit Graph

220 Commits

Author SHA1 Message Date
Aditya Manthramurthy
fd202f75df
Add GHC 9.8.2 to CI (#195) 2024-05-01 13:27:01 -07:00
Aditya Manthramurthy
996540bee2
CI: Add macos to build and update caching strategy (#194) 2024-05-01 12:35:37 -07:00
Aditya Manthramurthy
78a27b44bf
Add GHC 9.6 to CI and fix tests (#193)
Tests needing fixing for recent minio

Also:
- set minimum tested version to 8.10
- remove building with cabal 3.6
- update stack.yaml to add crypton-connection

Update live server test env var handling
2024-05-01 10:25:26 -07:00
Marc Scholten
34a186ed33
Use crypton-connection instead of connection (#191)
The connection package is not maintained anymore and doesn't work
with GHC 9.6
2024-04-30 14:19:34 -07:00
Aditya Manthramurthy
45e88d813b
Enable StrictData and bump up version for release (#189)
* Enable StrictData and bump up version for release

- Types defined in Credentials.Types and Network.Minio.Data are now
strict

* ormolu fixes
2023-05-22 12:32:34 -07:00
Aditya Manthramurthy
fa62ed599a
Add support for AssumeRole STS API (#188)
This change adds support for requesting temporary object storage
credentials using the STS API. Some breaking changes are introduced to
enable this support:

- `Credentials` type has been removed. Use the `CredentialValue` type
instead. Corresponding to this the type signature for `setCreds` has
changed, though the functionality is the same.
- The type alias `Provider` has been renamed to `CredentialLoader` to
avoid naming confusion.
2023-05-03 17:52:46 -07:00
Aditya Manthramurthy
7ae8a8179d
Add GHC 9.4 to CI (#186) 2023-05-01 13:08:14 -07:00
Aditya Manthramurthy
6d3925d597
Fix XML generator tests (#187)
- Differences in quoting of XML content does not impact the equality of
XML docs, so we parse generated XML docs and compare for equality.
2023-04-26 11:18:07 -07:00
Vehbi Sinan Tunalioglu
5d58cb3bfc
fix: update AWS region map (#185) 2023-04-26 11:14:38 -07:00
Aditya Manthramurthy
f4ae55468e
Add Credentials module to use Assume Role API (#184)
This exports a new module for retrieving STS based credentials, however
they are not yet convenient to use in the library - the session token
needs to be included as a custom header and may not be possible with all
APIs.
2022-12-23 07:53:27 -08:00
Aditya Manthramurthy
d87d67b75b
Add dev flag to cabal file and update README (#182)
This turns on the GHC option `-Werror` to ensure that warnings fail the
build in dev mode. The flag is enabled in the CI.

README is updated with cabal based instructions.
2022-10-04 15:07:41 -07:00
Aditya Manthramurthy
0b3a5559fd
Fix deprecation warnings (#181) 2022-10-04 09:56:38 -07:00
Aditya Manthramurthy
7eef9b08ea
Update CI configs (#180) 2022-10-04 09:25:56 -07:00
Aditya Manthramurthy
e06bb4c949
Enable partial fields warning (#179)
- Updates exported type `EventMessage` - so avoid exporting partial
functions.
2022-10-04 09:25:39 -07:00
Aditya Manthramurthy
d82b093b6b
Bump up version for new release (#172)
- Also add hlint to CI
- Also update CI with latest action versions
2022-05-27 16:22:18 -07:00
Aditya Manthramurthy
d59f45fec4
Hlint fixes (#173)
* Hlint fixes

- Will require major version bump as some types were changed from data
  to newtype

* ormolu fixes after hlint
2022-05-27 14:33:05 -07:00
Aditya Manthramurthy
b91a7afd6b
Update with changes for ormolu 0.5.0.0 (#171)
- Add ormolu check to CI
2022-05-27 12:07:28 -07:00
Tom McLaughlin
7b6547aca0
Test GHC 9.0.2 and 9.2.2 with Stack (#170) 2022-05-25 10:21:56 -07:00
Tom McLaughlin
baee20dfb6
Support aeson 2 (#169) 2022-05-24 15:34:47 -07:00
Aditya Manthramurthy
bdac380c77
Replace protolude with relude and build with GHC 9.0.2 (#168)
- relude is a better and more commonly used library

- Add compiler warnings and fixes

- Update stack lts to 18.24

- Add explicit deriving strategies
2022-02-11 13:48:08 -08:00
Aditya Manthramurthy
c59b7066fc
Updates from new ormolu 0.4 (#167)
* Changes from formatter

* Fix github action run on master branch
2022-02-10 13:34:11 -08:00
Aditya Manthramurthy
193be59432
Update CI (#166) 2022-02-10 10:43:43 -08:00
Aditya Manthramurthy
c52f2811fe
Use single CI file based on kowainik (#162)
* Use single CI file based on kowainik
2021-03-22 09:36:01 -07:00
Aditya Manthramurthy
aa2382b2e9
Use region specific endpoints for AWS S3 in presigned Urls (#164)
- Also update standard S3 endpoints

- Unify code that determines if path style or virtual style must be used for
regular and presigned requests

Fixes #160
2021-03-08 16:35:52 -08:00
Aditya Manthramurthy
b8cc1e57ee
Update formatting with latest ormolu 1.4 (#163) 2021-03-03 16:11:45 -08:00
Aditya Manthramurthy
73bc5b64a0
Fix XML generation test for S3 SELECT (#161)
- Test was failing because of non-unique ordering of CSV properties. It is fixed
by sorting the CSV properties before serialization.
2021-03-03 15:44:12 -08:00
Aditya Manthramurthy
5ab80384ae
Fix Actions CI (#159) 2021-01-05 12:30:28 -08:00
Aditya Manthramurthy
ab2c6b0b02
Bump up version for new release (#158) 2020-10-16 17:08:34 -07:00
Harshavardhana
787f638d45 Create CNAME 2020-08-02 19:18:12 -07:00
Aditya Manthramurthy
68a2b78010
Set continue-on-error at step level (#157)
* Set continue-on-error at step level

* Add windows cache dirs
2020-06-25 08:48:04 -07:00
Aditya Manthramurthy
a3538aa46c
CI: Add support for GHC 8.10, stack and live-server testing (#156)
* CI: Add support for GHC 8.10, stack and live-server testing

* Fix live-server tests for all platforms

* Fix windows tests

* Fix resourcet cleanup exceptions

* Mark minio-hs builds GHC 8.4, 8.8 on windows experimental

* Use minio with erasure code backend for tests

* Fix matrix combinations for cabal and stack

Co-authored-by: Krishnan Parthasarathi <kp@minio.io>
2020-06-24 10:35:11 -07:00
Alexander Vershilov
3dd235a1ad
Sent Accept-Encoding: identity in the head requests. (#155)
It appeared that some s3 servers (Yandex storage in particular)
honour `Accept-Encoding: gzip` request headeer. In such a case
servers can't send `Content-Length` header as transfer size differ
from the body size.
The simplest solution for this problem is to force http-client
to send  `Accept-Encoding: identity` header in the HeadObject
request.

Co-authored-by: Aditya Manthramurthy <donatello@users.noreply.github.com>
2020-06-15 10:21:41 -07:00
Aditya Manthramurthy
8e5e51ceb8
Remove stylish-haskell config file (#154)
We are now using ormolu instead.
2020-06-15 09:59:51 -07:00
Aditya Manthramurthy
23fecbb469
Update code formatting and update dependencies (unliftio, protolude) (#152)
* Format code with ormolu

* Use latest unliftio-core

* Use latest protolude
2020-06-14 10:06:41 -07:00
Aditya Manthramurthy
ce23f7322a
Windows build (#150) 2020-05-29 15:54:41 -07:00
Aditya Manthramurthy
8e4874972b
Add github workflow (#148) 2020-05-29 11:45:32 -07:00
Aditya Manthramurthy
ae141fd6f5 Support for Yandex Object Storage (#147)
* Update src/Network/Minio/Sign/V4.hs

Co-authored-by: Sergey Ivanov <ivanovs-4@users.noreply.github.com
2020-05-20 16:04:45 -07:00
Aditya Manthramurthy
b9a3cfcd1d
Set upper bound on unliftio-core (#146) 2020-05-20 07:47:55 -07:00
Aditya Manthramurthy
9739376227
Fix live server test (#142)
* Update travis ghc to 8.8.2

* Fix live server test
2020-01-29 14:53:27 -08:00
Aditya Manthramurthy
d2a78df4eb
New release (#140)
* Disable live-server tests by default

- They will always be run by our CI
- Also update and fix example in README.

* Update examples and add them to build

- Also drop support for GHC 8.2.2

* Bump up version for new release
2020-01-02 11:23:03 -08:00
Thomas Rodriguez
c31030beac add us-west-2 region to minio data (#139) 2019-12-10 05:59:26 +00:00
Aditya Manthramurthy
1eafa68648
Bump up version for new release (#138) 2019-10-29 13:11:54 -07:00
Aditya Manthramurthy
410d342cd5
Build with GHC 8.8 (#137)
* Fix to build with GHC 8.8 and fix error handling bug

To work with the addition of MonadFail constraint to parseTimeM in the time
library, the underlying monad was changed from Either to Maybe as it has a
MonadFail instance.

* Update build to run tests against local minio server
2019-10-28 15:40:20 -07:00
Aditya Manthramurthy
1e6579b02b
Add GetObjectResponse data type (#134)
This allows retrieving the ObjectInfo of an object during the
getObject call.
2019-07-29 12:37:44 -07:00
Aditya Manthramurthy
777ca8f616
Fix user-metadata extraction (#133) 2019-07-24 15:07:31 -07:00
Aditya Manthramurthy
b39127778e Add oiUserMetadata to ObjectInfo to return user metadata (#132) 2019-07-24 13:30:03 -07:00
Aditya Manthramurthy
04d1193201
Switch to more performant map data type (#131) 2019-07-24 12:52:18 -07:00
Harshavardhana
3291f8673c Remove port :9000 for play.min.io (#130) 2019-07-24 10:07:54 -07:00
Aditya Manthramurthy
0bcb1c9b33
Update changelog to prepare for release (#128) 2019-07-10 09:58:07 -07:00
Krishnan Parthasarathi
abed05e523 Expose runMinioRes/runMinioResWith (#129)
... to allow applications to manage application resources along side
MinIO SDK's internal resources
2019-07-10 09:26:54 -07:00