From 2bb3002d2d8933d7e7c9cb959df38e680df02e3d Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Tue, 2 Jan 2024 20:53:51 +0100 Subject: [PATCH] main: Add missing `--sources-dir` to `build-incus` command This adds the missing `--sources-dir` flag to the `build-incus` subcommand. Fixes #802 Signed-off-by: Thomas Hipp --- distrobuilder/main_incus.go | 1 + 1 file changed, 1 insertion(+) diff --git a/distrobuilder/main_incus.go b/distrobuilder/main_incus.go index 8c59c91b..5f617d8f 100644 --- a/distrobuilder/main_incus.go +++ b/distrobuilder/main_incus.go @@ -96,6 +96,7 @@ func (c *cmdIncus) commandBuild() *cobra.Command { c.cmdBuild.Flags().BoolVar(&c.flagVM, "vm", false, "Create a qcow2 image for VMs"+"``") c.cmdBuild.Flags().StringVar(&c.flagImportIntoIncus, "import-into-incus", "", "Import built image into Incus"+"``") c.cmdBuild.Flags().BoolVar(&c.global.flagKeepSources, "keep-sources", true, "Keep sources after build"+"``") + c.cmdBuild.Flags().StringVar(&c.global.flagSourcesDir, "sources-dir", filepath.Join(os.TempDir(), "distrobuilder"), "Sources directory for distribution tarballs"+"``") return c.cmdBuild }