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

Avoid open-ended dependencies #2462

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

pablobm
Copy link
Collaborator

@pablobm pablobm commented Nov 25, 2023

With the current dependency specification, we get the following warnings when building the gem:

WARNING:  open-ended dependency on actionpack (>= 5.0) is not recommended
  if actionpack is semantically versioned, use:
    add_runtime_dependency 'actionpack', '~> 5.0'
WARNING:  open-ended dependency on actionview (>= 5.0) is not recommended
  if actionview is semantically versioned, use:
    add_runtime_dependency 'actionview', '~> 5.0'
WARNING:  open-ended dependency on activerecord (>= 5.0) is not recommended
  if activerecord is semantically versioned, use:
    add_runtime_dependency 'activerecord', '~> 5.0'
WARNING:  open-ended dependency on kaminari (>= 1.0) is not recommended
  if kaminari is semantically versioned, use:
    add_runtime_dependency 'kaminari', '~> 1.0'
WARNING:  See https://guides.rubygems.org/specification-reference/ for help

I think this makes sense. We don't know which changes Rails 8 or Kaminari 2 may bring.

With the current dependency specification, we get the following warnings
when building the gem:

```
WARNING:  open-ended dependency on actionpack (>= 5.0) is not recommended
  if actionpack is semantically versioned, use:
    add_runtime_dependency 'actionpack', '~> 5.0'
WARNING:  open-ended dependency on actionview (>= 5.0) is not recommended
  if actionview is semantically versioned, use:
    add_runtime_dependency 'actionview', '~> 5.0'
WARNING:  open-ended dependency on activerecord (>= 5.0) is not recommended
  if activerecord is semantically versioned, use:
    add_runtime_dependency 'activerecord', '~> 5.0'
WARNING:  open-ended dependency on kaminari (>= 1.0) is not recommended
  if kaminari is semantically versioned, use:
    add_runtime_dependency 'kaminari', '~> 1.0'
WARNING:  See https://guides.rubygems.org/specification-reference/ for help
```

I think this makes sense. We don't know which changes Rails 8 or
Kaminari 2 may bring.
@pablobm pablobm requested a review from nickcharlton December 8, 2023 15:42
Copy link
Member

@nickcharlton nickcharlton left a comment

Choose a reason for hiding this comment

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

Ah, yeah, that's a good idea!

@nickcharlton nickcharlton merged commit 331a653 into thoughtbot:main Dec 12, 2023
nickcharlton added a commit that referenced this pull request Dec 12, 2023
In #2462, we forgot to include changes to `Gemfile.lock` and Circle
didn't help us.
nickcharlton added a commit that referenced this pull request Dec 12, 2023
In #2462, we forgot to include changes to `Gemfile.lock` and Circle
didn't help us.
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