configuration.local_unsafe_target
The .env.local file that jadpo config set would save a value in is a link, not an ordinary file.
Area 14, Tools; not declinable; the next step is usually the human's.
Why Jadpo refuses it
jadpo config set saves secrets, and it writes them only where it can
keep them safe: an ordinary .env.local in the project, which it adds
to .gitignore and which only you can read. Through a link, the secret
would land wherever the link points, in a file git may not ignore, a
folder that is synced, or another project's settings. So it refuses,
before writing anything.
Jadpo won't remove the link for you, since other projects may read the file it points to.
What it looks like
A project's config.jadpo declares a secret mail_api_key, and
.env.local is a link to a file of values kept in the home folder.
Storing a value at the prompt:
ln -s ~/shared.env .env.localjadpo config set mail_api_key
? Enter MAIL_API_KEY hiddenerror: `.env.local` isn't an ordinary file reason: It is a link or a folder, and a secret written through a link could end up somewhere that isn't git-ignored, so Jadpo writes only to an ordinary file. next: Remove `.env.local`, and run the command again (human) rule: configuration.local_unsafe_target help: https://jadpo.dev/docs/errors/configuration.local_unsafe_target
(human) at the end of the next: line tells your coding agent to stop
and ask you which fix you want, because the choice is yours to make: it
decides where your secrets are kept.
How to fix it
If this project should keep its own values, remove the link and store the value again:
rm .env.localjadpo config set mail_api_key
The value is in an ordinary .env.local in the project, which git
ignores. The file the link pointed to is unchanged.
If the values should keep coming from the shared file, edit that
file yourself instead of running jadpo config set:
"$EDITOR" ~/shared.envEvery command still reads the values through the link; only
jadpo config set refuses to write through it.
Related
Markdown for agents: /docs/errors/configuration.local_unsafe_target.md.Built from Jadpo main at aee2e8f.