fix: edit extras install command and render symlink parent dir
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ def edit(
|
||||
except ImportError:
|
||||
raise click.ClickException(
|
||||
"uvicorn is required for the edit server.\n"
|
||||
"Install with: uv add 'bincio[edit]'"
|
||||
"Install with: uv sync --extra edit"
|
||||
)
|
||||
|
||||
data = _resolve_data_dir(data_dir, config_path)
|
||||
|
||||
@@ -76,6 +76,7 @@ def _link_data(site: Path, data: Path) -> None:
|
||||
merged = data / "_merged"
|
||||
target = merged if merged.exists() else data
|
||||
public_data = site / "public" / "data"
|
||||
public_data.parent.mkdir(parents=True, exist_ok=True)
|
||||
if public_data.is_symlink():
|
||||
if public_data.resolve() == target.resolve():
|
||||
return # already correct
|
||||
|
||||
Reference in New Issue
Block a user