Setup
Versions
- Rust: 1.83.0
- Diesel: 2.2.6
- Database: PostgreSQL 17.0
Problem Description
The diesel setup command sets the migrations_directory dir field of the diesel.toml file to an absolute path, which both leaks personal information (at least the username of the user running the setup command) and breaks it when the local repository has a different path (for instance, when cloned by another team member).
Since it seems to be working perfectly fine with a relative path, I think it would be recommendable to have diesel setup set the migrations directory using a path relative to the root of the crate.
Checklist
Setup
Versions
Problem Description
The
diesel setupcommand sets themigrations_directorydirfield of the diesel.toml file to an absolute path, which both leaks personal information (at least the username of the user running the setup command) and breaks it when the local repository has a different path (for instance, when cloned by another team member).Since it seems to be working perfectly fine with a relative path, I think it would be recommendable to have
diesel setupset the migrations directory using a path relative to the root of the crate.Checklist
closed if this is not the case)