Skip to content

Commit

Permalink
packer-sdc/struct-markdown: Allow packer-internal as project director…
Browse files Browse the repository at this point in the history
…y 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.
  • Loading branch information
Wilken Rivera authored and nywilken committed Nov 17, 2023
1 parent 4fb8273 commit e599745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/packer-sdc/internal/struct-markdown/struct_markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e599745

Please sign in to comment.