Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

coretrace-log is downloaded twice: declared as coretrace-logger here and coretrace_logger by the compiler

Aperta Adatta ai principianti
#176 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cmake, cpp
Ambito
build-system

Direzione di ricerca

Inizia da cmake/logger/coretraceLog.cmake:18, poi confronta le dichiarazioni FetchContent in CMakeLists.txt:100 e CMakeLists.txt:151-163 al commit del compilatore fissato. Rinomina la dichiarazione del logger in coretrace_logger; verifica che una build pulita abbia un solo _deps/*logger*-src, poi esegui la build e ctest su Linux e macOS.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

build severity/minor

cmake/logger/coretraceLog.cmake:18 declares coretrace-log as coretrace-logger (v1.0.0). coretrace-compiler, which the analyzers fetch, declares the same repository as coretrace_logger, and calls FetchContent_Populate before checking whether the target already exists (its CMakeLists.txt:151-163, at the pinned commit 866fa76). A fresh build therefore downloads the logger twice, into build/_deps/coretrace-logger-src and build/_deps/coretrace_logger-src.

Both copies are the same commit today (v1.0.0 is 624688a), but nothing keeps them equal. Two declarations of this dependency already broke the build once (#37, #40).

Fix

Declare it as coretrace_logger, the name the stack analyzer and coretrace-compiler use. FetchContent keeps the first declaration of a name, and coretrace declares it first (CMakeLists.txt:100). FetchContent_GetProperties(coretrace_logger) in the compiler then finds it populated and downloads nothing.

Acceptance

  • A fresh build directory holds a single _deps/*logger*-src.
  • The build and ctest pass on Linux and macOS.

From the technical debt register (docs/quality/technical-debt.md, D9).

Lingua principale
C++
Stelle
5
Fork
4
Merge medio
1h 4m
PR unite (30g)
71

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CoreTrace/coretrace

Tutte le issue di CoreTrace/coretrace

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.