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
While trying to build the
developbranch I faced a build error. I havetaskwarriorinstalled on the system (M1 MacOs) and that is the output of thetask diagyou will see pasted below.cmake -S . -B build -DCMAKE_BUILD_TYPE=Releasetaskwarriortask diagcommand: