Skip to content

current package believes it's in a workspace when it's not #414

Closed
@kornelski

Description

@kornelski

I'm trying to build libavif, and I'm getting an odd error:

  error: current package believes it's in a workspace when it's not:
  current:   …/libavif-rs/target/debug/build/libavif-sys-a47bc2bce78bda23/out/build/_deps/cargoc-src/Cargo.toml
  workspace: …/libavif-rs/Cargo.toml

This build system sandwitch seems to be downloading cargo-c:

https://github.com/AOMediaCodec/libavif/blob/main/cmake/Modules/LocalRav1e.cmake

which doesn't play nice when this directory is inside another workspace's target/

Maybe it'd help if cargo-c included an empty [workspace] section in its Cargo.toml?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions