This repository was archived by the owner on Feb 10, 2026. It is now read-only.
Limit sourceror dep environments in mix.exs#242
Open
cmnstmntmn wants to merge 1 commit intoliveview-native:mainfrom
Open
Limit sourceror dep environments in mix.exs#242cmnstmntmn wants to merge 1 commit intoliveview-native:mainfrom
sourceror dep environments in mix.exs#242cmnstmntmn wants to merge 1 commit intoliveview-native:mainfrom
Conversation
Limit the `sourceror` dep availability to dev and test.
**Reason**
While trying install `live_view_native` in an existing codebase that's already using sourceror defined like:
```
{:sourceror, "~> 1.8", only: [:dev, :test]},
```
I'm getting this error:
```
Dependencies have diverged:
* sourceror (Hex package)
the :only option for dependency sourceror
> In mix.exs:
{:sourceror, "~> 1.8", [env: :prod, hex: "sourceror", only: [:dev, :test], repo: "hexpm"]}
does not match the :only option calculated for
> In deps/live_view_native/mix.exs:
{:sourceror, "~> 1.5", [env: :prod, hex: "sourceror", repo: "hexpm"]}
Remove the :only restriction from your dep
** (Mix) Can't continue due to errors on dependencies
```
If I’m not mistaken, `sourceror` isn’t required at runtime and is only used in development contexts. If that’s the case, restricting its inclusion in `live_view_native` to `only: [:dev, :test]` would prevent these dependency conflicts and avoid bringing it into production builds unnecessarily; ignore this PR otherwise.
sourceror dep environments in mix.exs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Limit the
sourcerordep availability to dev and test.Reason
While trying install
live_view_nativein an existing codebase that's already using sourceror defined like:I'm getting this error:
If I’m not mistaken,
sourcerorisn’t required at runtime and is only used in development contexts. If that’s the case, restricting its inclusion inlive_view_nativetoonly: [:dev, :test]would prevent these dependency conflicts and avoid bringing it into production builds unnecessarily; ignore this PR otherwise.