Skip to content

fix: declare GREEN_RELEASE as CACHE STRING so parent projects can pin dependency versions - #9

Merged
gauravharsha merged 1 commit into
mainfrom
fix/green-release-cache-var
Jul 10, 2026
Merged

fix: declare GREEN_RELEASE as CACHE STRING so parent projects can pin dependency versions#9
gauravharsha merged 1 commit into
mainfrom
fix/green-release-cache-var

Conversation

@gauravharsha

Copy link
Copy Markdown
Contributor

Declare GREEN_RELEASE as a CACHE STRING so a parent FetchContent build's release version is inherited rather than shadowed by a local variable, removing declaration-order sensitivity when resolving transitive Green dependencies.

Refs Green-Phys/green-mbpt#61

🤖 Generated with Claude Code

… dependency versions

Declare GREEN_RELEASE as a CACHE STRING so a parent FetchContent build's
release version is inherited rather than shadowed by a local variable,
removing declaration-order sensitivity when resolving transitive Green
dependencies.

Refs Green-Phys/green-mbpt#61

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.46%. Comparing base (caa99e7) to head (ecfe79b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage   98.46%   98.46%           
=======================================
  Files           3        3           
  Lines         130      130           
=======================================
  Hits          128      128           
  Misses          2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s CMake configuration so GREEN_RELEASE is defined as a CACHE STRING, allowing parent projects (e.g., via FetchContent or -DGREEN_RELEASE=...) to pin and propagate the desired Green dependency revision without being overridden by this project’s local set() order.

Changes:

  • Declare GREEN_RELEASE as a CACHE STRING with a descriptive cache help string.
  • Quote the default value (origin/main) to make the intended string value explicit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gauravharsha
gauravharsha merged commit f76d8d9 into main Jul 10, 2026
4 checks passed
@gauravharsha
gauravharsha deleted the fix/green-release-cache-var branch July 10, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants