Skip to content

[Bug]: AUR package conflicts with installed opencode package by shipping /usr/bin/opencode #1014

@arimxyer

Description

@arimxyer

Summary

The current AUR openwork package installs /usr/bin/opencode, which conflicts with the standalone opencode Arch package.

This causes installation to fail on Arch systems that already have opencode installed.

Steps to reproduce

  1. Install opencode on Arch Linux
  2. Install openwork from AUR, for example with:
    paru -S openwork

Actual behavior

paru builds the package successfully, but the final pacman transaction fails with:

error: failed to commit transaction (conflicting files)
openwork: /usr/bin/opencode exists in filesystem (owned by opencode)

Expected behavior

Either:

  • openwork should not ship /usr/bin/opencode, or
  • the package should clearly declare the appropriate conflict/replacement semantics, or
  • the Arch/AUR packaging guidance should make it clear that openwork replaces the standalone opencode package

Additional context

The current AUR PKGBUILD appears to repackage the upstream .deb release directly, and that bundle includes usr/bin/opencode.

On my system:

/usr/bin/opencode is owned by opencode 1.2.27-1

This looks like a packaging/integration problem rather than a build failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions