Skip to content

Commit e599745

Browse files
Wilken Riveranywilken
Wilken Rivera
authored andcommitted
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.
1 parent 4fb8273 commit e599745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/packer-sdc/internal/struct-markdown/struct_markdown.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (cmd *Command) Run(args []string) int {
4747

4848
for dir := filepath.Dir(absFilePath); len(dir) > 0 && projectRoot == ""; dir = filepath.Dir(dir) {
4949
base := filepath.Base(dir)
50-
if base == "packer" {
50+
if base == "packer" || base == "packer-internal" {
5151
projectRoot = dir
5252
filePath, _ = filepath.Rel(projectRoot, absFilePath)
5353
docsFolder = filepath.Join("website", "content", "partials")

0 commit comments

Comments
 (0)