jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.83k stars 187 forks source link

internal/devbox: fix warning when user refuses cache setup #2095

Closed gcurtis closed 1 month ago

gcurtis commented 1 month ago

Don't add extra substituters when the user answers "no" to the confirmation prompt for configuring Nix caches. This stops Nix from printing warnings such as:

warning: ignoring untrusted substituter 's3://mycache', you are not a trusted user.
Run man nix.conf for more information on the substituters configuration option.

Also print a message saying that devbox cache configure can be used to configure the cache after answering no.