Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump faraday version from 0.12 to 1.0 #73

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

pedrombl
Copy link
Contributor

@pedrombl pedrombl commented Oct 12, 2021

Purpose

resolves: #65

Currently the gem trino-client depends on Faraday 0.12. If a project uses the lastest version of Faraday (1.7) and introduces trino-client, it needs to have the Faraday gem downgraded.

Overview

  • Bump Faraday version
  • Bump Webmock version to 3.0
  • Bump tiny-presto version

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

@pedrombl pedrombl requested a review from a team as a code owner October 12, 2021 15:30
@pedrombl
Copy link
Contributor Author

pedrombl commented Oct 12, 2021

This is currently failing:

| Bundler could not find compatible versions for gem "faraday":
|   In Gemfile:
|     tiny-presto (~> 0.0.7) was resolved to 0.0.7, which depends on
|       faraday (~> 0.12)
|
|     trino-client was resolved to 1.0.0, which depends on
|       faraday (~> 1.0)
| Took   2.47 seconds

Looks like tiny-presto is requiring Faraday but it doesn't actually use it.

Gemfile Outdated Show resolved Hide resolved
@pedrombl pedrombl marked this pull request as ready for review October 15, 2021 14:26
@pedrombl
Copy link
Contributor Author

pedrombl commented Oct 15, 2021

@Lewuathe thanks for releasing tiny-presto. Now this is ready to be reviewed too! :)

Copy link

@jclarkin jclarkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have little experience in this codebase, but the change looks both simple and good to me.

@pedrombl
Copy link
Contributor Author

pedrombl commented Nov 22, 2021

Hi @takezoe @miniway - I saw that you are also maintainers of this trino-client-ruby. Could you take a look at this PR, please?

Copy link
Member

@takezoe takezoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me though, why CI didn't run for this pull request? 🤔 Approval for the first-time contributor might be necessary but I don't see an Approve button...

@takezoe
Copy link
Member

takezoe commented Nov 25, 2021

Anyway, let me merge this and will see how CI works on master. Thanks for your contribution!

@takezoe takezoe merged commit 2a6482c into treasure-data:master Nov 25, 2021
@pedrombl pedrombl deleted the update-faraday branch November 26, 2021 20:03
@exoego exoego added the dependencies Pull requests that update a dependency file label Feb 22, 2023
composerinteralia added a commit to composerinteralia/trino-client-ruby that referenced this pull request Jun 4, 2024
Trino 1.0.2 includes some Faraday compatibility changes:

treasure-data#73
treasure-data#75

But neither of those changes make the gem incompatible with Faraday
0.6.6.

This commit relaxes the version so we can upgrade Presto and Faraday
independently. Once we are on Faraday 1.x we can go back to the official
release of this gem.
composerinteralia added a commit to composerinteralia/trino-client-ruby that referenced this pull request Jun 4, 2024
This commit applies the change from
treasure-data#73

This will allow us to upgrade presto-client separately from upgrading
Faraday. Once we are on Faraday v1.0 we can upgrade directly to
trino-client v1.0.2 without issue.
composerinteralia added a commit to composerinteralia/trino-client-ruby that referenced this pull request Jun 4, 2024
This commit applies the change from
treasure-data#73

This will allow us to upgrade presto-client separately from upgrading
Faraday. Once we are on Faraday v1.0 we can upgrade directly to
trino-client v1.0.2 without issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Presto client currently depends on old Faraday~> 0.12 version.
4 participants