Skip to content

Commit

Permalink
Output absolute paths in edgedb server info
Browse files Browse the repository at this point in the history
It was changed to output relative paths in #1447, which is probably
not what we want. It is specifically a problem because it is used
by some downstream scripts to create symlinks, which broke.
  • Loading branch information
msullivan committed Feb 24, 2025
1 parent e6bebb5 commit eba2d80
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/portable/server/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use edgedb_cli_derive::IntoArgs;
use crate::portable::local;
use crate::portable::repository::{Channel, Query, QueryOptions};
use crate::portable::ver;
use crate::print::AsRelativeToCurrentDir;
use crate::table;

pub fn run(cmd: &Command) -> anyhow::Result<()> {
Expand Down Expand Up @@ -40,7 +39,7 @@ pub fn run(cmd: &Command) -> anyhow::Result<()> {
let path = path.to_str().context("cannot convert path to a string")?;
println!("{}", serde_json::to_string(path)?);
} else {
println!("{}", path.as_relative().display());
println!("{}", path.display());
}
}
"version" => {
Expand All @@ -64,10 +63,7 @@ pub fn run(cmd: &Command) -> anyhow::Result<()> {
} else {
table::settings(&[
("Version", inst.version.to_string()),
(
"Binary path",
inst.server_path()?.as_relative().display().to_string(),
),
("Binary path", inst.server_path()?.display().to_string()),
]);
}
Ok(())
Expand Down

0 comments on commit eba2d80

Please sign in to comment.