Skip to content

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

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#7
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-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.09%. Comparing base (1e835f8) to head (e1f740c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   71.09%   71.09%           
=======================================
  Files           4        4           
  Lines         211      211           
=======================================
  Hits          150      150           
  Misses         61       61           

☔ 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 top-level CMake configuration to make GREEN_RELEASE a cache variable so that parent projects (e.g., FetchContent superbuilds) can consistently override/pin the Green dependency “release” without being affected by variable declaration order inside this project.

Changes:

  • Declare GREEN_RELEASE as a CACHE STRING with a docstring, rather than as a normal variable.

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

@gauravharsha
gauravharsha merged commit 440f1d5 into main Jul 10, 2026
2 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.

3 participants