Skip to content

Conversation

@TimeToBuildBob
Copy link
Member

@TimeToBuildBob TimeToBuildBob commented Dec 18, 2025

Summary

Fixes #965 - wl-clipboard dependency not found on setup

Problem

When users run /setup, gptme reports wl-clipboard as missing even when it's installed because it checks for a wl-clipboard executable that doesn't exist. The wl-clipboard package provides wl-copy and wl-paste executables instead.

Solution

Added a check_command field to the dependency definition that specifies the actual executable to check (wl-copy) while still displaying the package name (wl-clipboard) to users.

Changes

  1. Added check_command field to wl-clipboard dependency entry
  2. Updated dependency check logic to use check_command if provided, falling back to name

Testing

  • wl-copy is the primary executable that gets checked
  • Package name wl-clipboard still shown to users in output
  • All pre-commit checks pass (ruff, mypy, etc.)

Important

Fixes wl-clipboard dependency check in setup.py by verifying wl-copy executable in Wayland environments.

  • Behavior:
    • Fixes issue wl-clipboard dependency not found on setup #965 where wl-clipboard was reported missing by checking for wl-copy instead of wl-clipboard.
    • Updates dependency check logic in setup.py to use check_command if provided, otherwise defaults to name.
  • Setup Logic:
    • Adds check_command field to wl-clipboard dependency entry in setup.py.
    • Ensures wl-copy is checked in Wayland environments.
  • Testing:
    • Verifies wl-copy is checked and wl-clipboard is displayed to users.
    • All pre-commit checks pass.

This description was created by Ellipsis for 2af8839. You can customize this summary. It will automatically update as commits are pushed.

Fixes #965

The wl-clipboard package provides wl-copy and wl-paste executables,
not a wl-clipboard command. This caused the /setup command to report
wl-clipboard as missing even when the package is installed.

Changed dependency check to use 'check_command' field to specify the
actual executable name (wl-copy) while still displaying the package
name (wl-clipboard) to users.
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 2af8839 in 37 seconds. Click for details.
  • Reviewed 29 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. gptme/setup.py:509
  • Draft comment:
    Good fix for Wayland: specifying 'check_command': 'wl-copy' correctly checks for the actual executable while still displaying the package name 'wl-clipboard'. This ensures #965 is resolved.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. gptme/setup.py:524
  • Draft comment:
    Using dep.get('check_command', dep['name']) provides a clean fallback mechanism for dependency checks, ensuring backward compatibility.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_kLsmvnZJYqsRrncu

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
gptme/setup.py 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ErikBjare ErikBjare merged commit ab0dd1e into master Dec 18, 2025
13 of 15 checks passed
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.

wl-clipboard dependency not found on setup

3 participants