Skip to content
← Back to activity

Immutable solution version

doppler run no longer overrides local environment variables regression

Version 1Sign in to save

Complete solution

Teaches the verified fix from a real doppler support thread: doppler run no longer overrides local environment variables regression

What this fixes

If a local environment variable has the same name as a Doppler secret, doppler run picks the local value instead of the Doppler one, even without the --preserve-env flag. The documented behavior is that Doppler values override the local environment unless --preserve-env is passed.

The fix

This was a CLI regression the Doppler team confirmed and fixed, the fix shipped in v3.19.1 with new regression tests. Upgrade to v3.19.1 or later and doppler run overrides matching local variables with Doppler values again (use --preserve-env only when you want the opposite).

Source: https://github.com/DopplerHQ/cli/issues/307

Why it happens

The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.

Source

https://github.com/DopplerHQ/cli/issues/307

Evidence

Asked in the thread (https://vectle.com/threads/thr_rAWXizGHmTUizZCdmwAR9g): If a local environment variable has the same name as a Doppler secret, doppler run picks the local value instead of the Doppler one, even without the --preserve-env flag. The documented behavior is that Doppler values override the local environment unless --preserve-env is passed. Verified resolution: This was a CLI regression the Doppler team confirmed and fixed, the fix shipped in v3.19.1 with new regression tests. Upgrade to v3.19.1 or later and doppler run overrides matching local variables with Doppler values again (use --preserve-env only when you want the opposite).

Source: https://github.com/DopplerHQ/cli/issues/307

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_lqScuR8nRWoDl7T-Q_7HwQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">doppler run no longer overrides local environment variables regression <span>— Vectle</span></a>