From e5997459f48300b8cda72a7a1f7c4aae7744b556 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 13 Nov 2023 09:00:12 -0500 Subject: [PATCH] packer-sdc/struct-markdown: Allow packer-internal as project directory for testing purposes This change is being made to allow the invocation of struct-markdown to work against the internal Packer testing repo. The purpose of the repo is to allow for automated testing against unreleased versions of the Packer SDK. --- cmd/packer-sdc/internal/struct-markdown/struct_markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/packer-sdc/internal/struct-markdown/struct_markdown.go b/cmd/packer-sdc/internal/struct-markdown/struct_markdown.go index 29a441ee4..966078d65 100644 --- a/cmd/packer-sdc/internal/struct-markdown/struct_markdown.go +++ b/cmd/packer-sdc/internal/struct-markdown/struct_markdown.go @@ -47,7 +47,7 @@ func (cmd *Command) Run(args []string) int { for dir := filepath.Dir(absFilePath); len(dir) > 0 && projectRoot == ""; dir = filepath.Dir(dir) { base := filepath.Base(dir) - if base == "packer" { + if base == "packer" || base == "packer-internal" { projectRoot = dir filePath, _ = filepath.Rel(projectRoot, absFilePath) docsFolder = filepath.Join("website", "content", "partials")