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

enhancement/bug: electric version falls back to 0.0.0 when used as hex package #2179

Open
itoxiq opened this issue Dec 17, 2024 · 0 comments · May be fixed by #2180
Open

enhancement/bug: electric version falls back to 0.0.0 when used as hex package #2179

itoxiq opened this issue Dec 17, 2024 · 0 comments · May be fixed by #2180
Assignees
Labels

Comments

@itoxiq
Copy link

itoxiq commented Dec 17, 2024

When adding electric to an existing elixir project its version will be set to 0.0.0, due to the functions(load from env or from package.json which is not included in hex package) in the mix.exs.

This can lead to the following:

Unchecked dependencies for environment dev:
* electric (Hex package)
  the dependency does not match the requirement "~> 1.0.0-beta.1", got "0.0.0"
** (Mix) Can't continue due to errors on dependencies

one can maybe provide the version again via an env var - but this is unintuitive and also repetitive 😅

@itoxiq itoxiq changed the title bug: electric version falls back to 0.0.0 when used via mix enhancement/bug: electric version falls back to 0.0.0 when used via mix Dec 17, 2024
@itoxiq itoxiq changed the title enhancement/bug: electric version falls back to 0.0.0 when used via mix enhancement/bug: electric version falls back to 0.0.0 when used as hex package Dec 17, 2024
@balegas balegas added the bug label Dec 18, 2024
@alco alco self-assigned this Dec 18, 2024
alco added a commit that referenced this issue Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants