Skip to content

fix: fix nested dirs in example tars#5447

Merged
deansheather merged 2 commits into
mainfrom
dean/fix-example-tars
Dec 16, 2022
Merged

fix: fix nested dirs in example tars#5447
deansheather merged 2 commits into
mainfrom
dean/fix-example-tars

Conversation

@deansheather
Copy link
Copy Markdown
Member

@deansheather deansheather commented Dec 16, 2022

The example tar generation code had some problems compared to the regular directory -> tar code we use for provisioners:

  1. it included ./ prefix on every file
  2. it included the root entry ./ when it's not supposed to
  3. directories had the mode 0644 when it should've been 0755
  4. subdirectory contents weren't added properly

This caused the docker template to not work using the example_id field on template version creation.

@deansheather deansheather requested a review from f0ssel December 16, 2022 15:58
@deansheather deansheather merged commit 0c0e3f0 into main Dec 16, 2022
@deansheather deansheather deleted the dean/fix-example-tars branch December 16, 2022 16:19
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants