From c9ecece389cbfe7b77903ff4a4d19eab8516ae43 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Wed, 13 May 2026 05:38:29 +0000 Subject: [PATCH] fix: give actionable instructions when sandbox-binary directory is missing Closes #110. Previously `dbdeployer unpack` exited with only "You should create it or provide an alternate base directory using --sandbox-binary", leaving users to figure out the path and command themselves. The error now points to `dbdeployer init --skip-all-downloads` (the canonical setup command) and includes a ready-to-copy `mkdir -p ` as a manual alternative. No behavior change beyond the error text: the directory is still not created automatically. --- cmd/unpack.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/unpack.go b/cmd/unpack.go index f00d0db1..e9d0a214 100644 --- a/cmd/unpack.go +++ b/cmd/unpack.go @@ -68,7 +68,11 @@ func unpackTarball(cmd *cobra.Command, args []string) { if !common.DirExists(Basedir) { common.Exit(1, fmt.Sprintf(globals.ErrDirectoryNotFound, Basedir), - "You should create it or provide an alternate base directory using --sandbox-binary") + "Create it by running:", + " dbdeployer init --skip-all-downloads", + "or manually with:", + fmt.Sprintf(" mkdir -p %s", Basedir), + "or provide an alternate base directory using --sandbox-binary") } err = ops.UnpackTarball(ops.UnpackOptions{