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

improvement: add igniter installer #113

Merged
merged 2 commits into from
Jan 27, 2025
Merged

improvement: add igniter installer #113

merged 2 commits into from
Jan 27, 2025

Conversation

zachdaniel
Copy link
Contributor

This work depends on composing the oban installer, and so can't be merged until this PR is merged:

oban-bg/oban#1230

Contributor checklist

  • Bug fixes include regression tests
  • Features include unit/acceptance tests

This work depends on composing the oban installer, and so
can't be merged until this PR is merged:

oban-bg/oban#1230
adds_deps: [],
# dependencies to add and call their associated installers, if they exist
installs: [
{:oban, "~> 2.0"}

Choose a reason for hiding this comment

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

This version of Oban was released in July 2020. It's far older than we'd recommend anybody use, and not fully compatible with newer dependencies. The ash_oban package itself is only a couple of years old. Perhaps specify a more recent minimum version, maybe ~> 2.17?

Of course, the only minor release that has an ash installer is v2.19, so perhaps it doesn't matter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It shouldn't really matter, but the real reason I did that is because mix igniter.install pins to the major version only, and if I put a higher version here the user will be prompted to change it to that higher version, even they they are certainly on a compatible version.

When oban task itself was updating the version, if ash_oban had a different dep string, then lyou could be asked to confirm the version 3 times consecutively 😂. Once for oban install, once for oban setting it, once for ash_oban setting it to the higher value.

But it's an interesting point that theoretically this would allow older versions. It could only happen if a dep was pinning oban to something older though, which seems unlikely.

@zachdaniel zachdaniel merged commit d47bf7b into main Jan 27, 2025
18 checks passed
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