Skip to content

Conversation

@frostmark
Copy link

@frostmark frostmark commented May 26, 2025

Hi! 👋

I ran into a compatibility issue when using this gem alongside telegram-bot-ruby. The conflict is caused by the version of dry-configurable being locked below 1.0.

bundle
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

    Because dry-configurable >= 0.12.0, < 0.13.0 depends on dry-core >= 0.5, < 1.A
      and dry-configurable >= 0.8.0, < 0.12.0 depends on dry-core >= 0.4.7, < 1.A,
      dry-configurable >= 0.8.0, < 0.13.0 requires dry-core >= 0.4.7, < 1.A.
    And because tdlib-ruby >= 2.2.0, < 3.1.0 depends on dry-configurable ~> 0.9,
      tdlib-ruby >= 2.2.0, < 3.1.0 requires dry-core >= 0.4.7, < 1.A or dry-configurable >= 0.13.0, < 1.A.
(1) So, because tdlib-ruby >= 3.1.0 depends on dry-configurable ~> 0.13
      and dry-configurable >= 0.13.0, < 1.0.0 depends on dry-core ~> 0.6,
      tdlib-ruby >= 2.2.0 requires dry-core >= 0.4.7, < 1.A.

    Because dry-struct >= 1.6.0, < 1.7.0 depends on dry-types >= 1.7, < 2
      and telegram-bot-ruby >= 1.0.0.pre depends on dry-struct ~> 1.6,
      telegram-bot-ruby >= 1.0.0.pre requires dry-types >= 1.7, < 2 or dry-struct >= 1.7.0, < 2.A.
    And because dry-types >= 1.7.0 depends on dry-core ~> 1.0
      and dry-struct >= 1.7.0 depends on dry-core ~> 1.1,
      telegram-bot-ruby >= 1.0.0.pre requires dry-core >= 1.0, < 2.A.
    And because tdlib-ruby >= 2.2.0 requires dry-core >= 0.4.7, < 1.A (1),
      tdlib-ruby >= 2.2.0 is incompatible with telegram-bot-ruby >= 1.0.0.pre.
    So, because Gemfile depends on telegram-bot-ruby ~> 2.1
      and Gemfile depends on tdlib-ruby ~> 3.0,
      version solving has failed.

This PR updates the dependency to ~> 1.0, which resolves the issue and should remain compatible with existing functionality.

Let me know if you'd like me to make any adjustments — happy to update the PR if needed.

Thanks again for your work on this gem!

@nevrfl
Copy link
Collaborator

nevrfl commented Jun 17, 2025

Thank you. We have plans to update to the latest version of telegram-bot-ruby in our project. After the update, we will definitely apply your corrections. Now we have slightly different directions of development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants