Skip to content

Show mix hex.package diff commands in hex.outdated output#1137

Open
ericmj wants to merge 2 commits intomainfrom
ericmj/outdated-diff-hint
Open

Show mix hex.package diff commands in hex.outdated output#1137
ericmj wants to merge 2 commits intomainfrom
ericmj/outdated-diff-hint

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Apr 10, 2026

The goal is to provide informations to agents on how to use view package diffs as they cannot easily access https://diff.hex.pm.

image

ericmj added 2 commits April 10, 2026 15:00
Add a hint listing `mix hex.package diff PACKAGE FROM..TO` commands
for each outdated dependency so users and agents can easily view
diffs from the CLI without needing a browser.

Closes hexpm/diff#108
Mention that users can directly update the version in mix.exs to
force a dependency to a specific version when mix deps.update does
not update it due to transitive dependency conflicts.
@ericmj
Copy link
Copy Markdown
Member Author

ericmj commented Apr 10, 2026

It adds quite a but of output. Should we only show a single example command instead of a command for every outdated package? Or maybe add it to the table, but I am worried about the width of the table.

@wojtekmach
Copy link
Copy Markdown
Member

Hard to decide, I'm too worried about the width of the table so that's probably a -1 for that. I think showing just one command, or a generic one like, say, mix hex.package diff {package} {from}..{to} is a good compromise. Another option is to have an -- flag for more output but discoverability.

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