Skip to content

feat: DPRINT_AUTO_INSTALL prevents downloading remote config files - #1495

Merged
dsherret merged 8 commits into
mainfrom
auto-install-config
Nov 30, 2026
Merged

dsherret merged 8 commits into
mainfrom
auto-install-config

Conversation

@dsherret

@dsherret dsherret commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Setting DPRINT_AUTO_INSTALL now also prevents automatically downloading the remote configuration files in extends (urls and npm: specifiers with a version), which need to be installed with dprint install. They can be allowed with config in a comma-separated list:

  • Not set, empty, 1, or true - Everything is automatically installed, the same as before.
  • wasm - Only Wasm plugins.
  • config - Only configuration files.
  • config,wasm - Both.
  • 0 or false - Nothing.

Unknown values (including ones with spaces) allow nothing and are warned about. What's known in the list is still used.

Details:

  • A configuration file specified on the command line (ex. dprint fmt --config https://...) is still downloaded, but what it extends isn't.
  • A cached configuration file is used without checking for a newer one, even when it's stale. --reload errors and says to run dprint install --reload.
  • When a cached configuration file doesn't match its checksum, the error says to run dprint install.
  • This also applies to editors, which error instead of asking about a download.
  • dprint --help, dprint license, and dprint editor-info now report a failure to resolve the configuration on stderr instead of ignoring it. It still doesn't fail the command.
  • The config sub commands (ex. dprint install, dprint add, and dprint config update) still download.

@dsherret
dsherret added this pull request to stack #1496 November 30, 2026 22:42
Base automatically changed from node-modules-process-plugin-executable to main November 30, 2026 22:55
@dsherret
dsherret merged commit 80f2e9a into main Nov 30, 2026
8 checks passed
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.

1 participant