Skip to content

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

Merged
ericmj merged 3 commits into
mainfrom
ericmj/outdated-diff-hint
Apr 23, 2026
Merged

Show mix hex.package diff commands in hex.outdated output#1137
ericmj merged 3 commits into
mainfrom
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.

ericmj pushed a commit that referenced this pull request Apr 23, 2026
Per review feedback on #1137: listing a `mix hex.package diff` command
for every outdated package adds significant output. Show a single
generic command hint (`mix hex.package diff APP FROM..TO`) instead.

https://claude.ai/code/session_0162egDzWnK8wcGhWZxSk2mB
Listing a `mix hex.package diff` command for every outdated package
adds significant output. Show a single generic command hint
(`mix hex.package diff APP FROM..TO`) instead.
@ericmj ericmj force-pushed the ericmj/outdated-diff-hint branch from 8403710 to 75c55f6 Compare April 23, 2026 07:56
@ericmj ericmj merged commit 8bb9ef5 into main Apr 23, 2026
20 checks passed
@ericmj ericmj deleted the ericmj/outdated-diff-hint branch April 23, 2026 07:59
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.

3 participants