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

Make oban installer idempotent #1230

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Make oban installer idempotent #1230

merged 1 commit into from
Jan 27, 2025

Conversation

zachdaniel
Copy link
Contributor

by using on_exists: :skip when generating the migration, it is safe for other igniter installers (like the one I'm working on) to add {:oban, "~> 2.0"} to their installs list in their igniters. If oban is present, the installer does nothing, but if not the user gets a full oban installation.

Also removes an unnecessary add_dep call which prompts users to change the dep in cases where they have something like ~> 2.0 instead of exactly ~> 2.18.

by using `on_exists: :skip` when generating the migration, it is
safe for other igniter installers (like the one I'm working on)
to add `{:oban, "~> 2.0"}` to their `installs` list in their
igniters. If oban is present, the installer does nothing, but if
not the user gets a full oban installation.

Also removes an unnecessary `add_dep` call which prompts users
to change the dep in cases where they have something like
`~> 2.0` instead of exactly `~> 2.18`.
@zachdaniel
Copy link
Contributor Author

If you happen to remember, please let me know here if/when this is released 🙇

zachdaniel added a commit to ash-project/ash_oban that referenced this pull request Jan 27, 2025
This work depends on composing the oban installer, and so
can't be merged until this PR is merged:

oban-bg/oban#1230
@sorentwo sorentwo changed the title improvement: make oban installer idempotent Make oban installer idempotent Jan 27, 2025
@sorentwo sorentwo added kind:enhancement New feature or request area:oss Related to Oban OSS labels Jan 27, 2025
@sorentwo sorentwo merged commit 55f7645 into oban-bg:main Jan 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:oss Related to Oban OSS kind:enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants