Skip to content

Add localEnvironment recipe key - #738

Merged
jkloetzke merged 3 commits into
BobBuildTool:masterfrom
jkloetzke:local-environment
Nov 11, 2026
Merged

jkloetzke merged 3 commits into
BobBuildTool:masterfrom
jkloetzke:local-environment

Conversation

@jkloetzke

Copy link
Copy Markdown
Member

Fixes #698.

Variables of the privateEnvironment are evaluated after the dependencies
of a recipe. They cannot be used in dependency conditions or names.
Changing the evaluation order of privateEnvironment could subtly break
existing projects, though.

Add a new localEnvironment key instead. It is evaluated right after the
environment and before the dependencies. The variables are visible to
the current recipe only and are not passed to dependencies, unless done
explicitly by the environment setting of a dependency.

Fixes BobBuildTool#698.
Describe the new localEnvironment key, its evaluation order relative to
the other environment keys and how it fits into the environment
handling of the recipe dependency tree.
@codecov

codecov Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.38%. Comparing base (0155acd) to head (318a16a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #738   +/-   ##
=======================================
  Coverage   90.38%   90.38%           
=======================================
  Files          59       59           
  Lines       17301    17306    +5     
=======================================
+ Hits        15637    15642    +5     
  Misses       1664     1664           

☔ 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.

@jkloetzke
jkloetzke merged commit 303f0f3 into BobBuildTool:master Nov 11, 2026
11 checks passed
@jkloetzke
jkloetzke deleted the local-environment branch November 11, 2026 21:30
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.

privateEnvironment variable cannot be used in conditional depends

1 participant