Skip to content

Error on build of the develop branch: failed to select a version for taskchampion #3739

@mdvico

Description

@mdvico

While trying to build the develop branch I faced a build error. I have taskwarrior installed on the system (M1 MacOs) and that is the output of the task diag you will see pasted below.

  • What command(s) did you run? cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
  • What did you expect to happen? Build taskwarrior
  • What actually happened? Build failed with error:
$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
-- Configuring C++17
-- System: Darwin
-- Looking for git submodules
-- Found git submodules
-- Looking for SHA1 references
-- Found SHA1 reference: 3bf020060
-- Looking for libuuid
-- Found libuuid
-- Configuring cmake.h
-- Rust Toolchain: stable-aarch64-apple-darwin
-- Rust Target: aarch64-apple-darwin
-- Using Corrosion as a subdirectory
error: failed to select a version for `taskchampion`.
    ... required by package `taskchampion-lib v0.1.0 (/Users/mvico/Documents/projects/taskwarrior.git/src/taskchampion-cpp)`
versions that meet the requirements `=1.0.2` (locked to 1.0.2) are: 1.0.2

the package `taskchampion-lib` depends on `taskchampion`, with features: `ureq` but `taskchampion` does not have these features.
 It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an
implicit feature with that name.


failed to select a version for `taskchampion` which could resolve this conflict
CMake Error at src/taskchampion-cpp/corrosion/cmake/Corrosion.cmake:1532 (message):
  Crate taskchampion_lib does not depend on cxx.
Call Stack (most recent call first):
  src/taskchampion-cpp/CMakeLists.txt:26 (corrosion_add_cxxbridge)


-- Configuring incomplete, errors occurred!
  • Output of the task diag command:
task 3.3.0
   Platform: Darwin

Compiler
    Version: Apple LLVM 16.0.0 (clang-1600.0.26.4)
       Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
 Compliance: C++17

Build Features
      CMake: 3.31.2
    libuuid: libuuid + uuid_unparse_lower
 Build type: Release

Configuration
       File: /Users/mvico/.taskrc (found), 1400 bytes, mode 100644
       Data: /Users/mvico/.task (found), dir, mode 40755
         GC: Enabled
    $EDITOR: nvim
Hooks
     System: Enabled
   Location: /Users/mvico/.task/hooks
             (-none-)

Tests
   Terminal: 210x44
 Broken ref: Scanned 78 tasks for broken references:
             No broken references found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions