Skip to content

Commit

Permalink
main: Add missing --sources-dir to build-incus command
Browse files Browse the repository at this point in the history
This adds the missing `--sources-dir` flag to the `build-incus`
subcommand.

Fixes #802

Signed-off-by: Thomas Hipp <[email protected]>
  • Loading branch information
monstermunchkin committed Jan 2, 2024
1 parent 94e1b0d commit 2bb3002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distrobuilder/main_incus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2bb3002

Please sign in to comment.