Skip to content

fix: issue where archive was being closed before the file finished writing causing corrupt TerraformAssets #3873

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mutahhir
Copy link
Member

@mutahhir mutahhir commented May 20, 2025

Related issue

Fixes #3858

Description

I'm not sure why this only showed up once we upgraded the version of archiver in the last release, but intuitively this should've always been a problem. Was led to this by @DarkAtra's comment ❤️ .

Checklist

  • I have updated the PR title to match CDKTF's style guide
  • I have run the linter on my code locally
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation if applicable
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works if applicable
  • New and existing unit tests pass locally with my changes

@mutahhir mutahhir requested a review from a team as a code owner May 20, 2025 09:33
@mutahhir mutahhir requested review from ansgarm and DanielMSchmidt and removed request for a team May 20, 2025 09:33
@mutahhir mutahhir changed the title chore: Fix issue where archive was being closed before the file finished writing fix: issue where archive was being closed before the file finished writing causing corrupt TerraformAssets May 20, 2025
@Hi-Fi
Copy link

Hi-Fi commented May 21, 2025

@mutahhir @DanielMSchmidt any plans to merge and release this fix? We have to use currently mixed versions as cdktf has to be 0.20.11 due to this, but cdktf-cli 0.20.12 due to @cdktf/node-pty-prebuilt-multiarch version.

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.

cdktf: TerraformAsset produces corrupted zip file
3 participants