Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds nested directory support to pulumi new .zip #14473

Merged
merged 1 commit into from Nov 1, 2023

Conversation

kpitzen
Copy link
Contributor

@kpitzen kpitzen commented Nov 1, 2023

Description

The previous ZIP implementation here only supported a flat .zip file structure - Pulumi Java projects often contain nested directories (and many templates will likely organize code in such a way that involves directories as well). This inspects each file during traversal of the ZIP archive, and creates any necessary directories it encounters along the way.

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Nov 1, 2023

Changelog

[uncommitted] (2023-11-01)

Bug Fixes

  • [cli/new] Adds nested directory support to pulumi new .zip
    #14473

@kpitzen kpitzen force-pushed the KP/AddsDirectorySupportZIP branch 2 times, most recently from e2b5888 to 37fe60a Compare November 1, 2023 17:51
@kpitzen kpitzen marked this pull request as ready for review November 1, 2023 17:51
Copy link
Member

@Frassle Frassle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests please

sdk/go/common/workspace/templates_zip.go Outdated Show resolved Hide resolved
@kpitzen kpitzen added this pull request to the merge queue Nov 1, 2023
Merged via the queue into master with commit 8c3b65b Nov 1, 2023
44 checks passed
@kpitzen kpitzen deleted the KP/AddsDirectorySupportZIP branch November 1, 2023 22:42
@justinvp justinvp mentioned this pull request Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants