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

Empty files under the files key don't get put into the package #1791

Closed
corang opened this issue Jun 6, 2023 · 0 comments · Fixed by #1860
Closed

Empty files under the files key don't get put into the package #1791

corang opened this issue Jun 6, 2023 · 0 comments · Fixed by #1860
Assignees
Labels
bug 🐞 Something isn't working
Milestone

Comments

@corang
Copy link
Contributor

corang commented Jun 6, 2023

Environment

Device and OS: ubuntu 22 VM
App version: 0.27.0
Kubernetes distro being used: n/a

Steps to reproduce

  1. create a zarf.yaml with a files component
  2. Make the file that the component refernces empty
  3. build the package
  4. deploy the package

Expected result

The empty file is placed where specified

Actual Result

Package fails to deploy with

 Saving values.yaml                                                                                                                                                                 
  ⠋  Saving values.yaml (0s)     ERROR:  Failed to deploy package: unable to deploy all components in this Zarf Package: unable to deploy                                           
             component values: unable to process the component files: unable to copy file
             /tmp/zarf-2295005221/components/values/files/0 to values.yaml: lstat
             /tmp/zarf-2295005221/components/values/files/0: no such file or directory

Severity/Priority

Meh, I don't know why you'd want an empty file

Additional Context

Add any other context or screenshots about the technical debt here.

@Racer159 Racer159 added bug 🐞 Something isn't working and removed possible-bug 🐛 labels Jun 6, 2023
@Racer159 Racer159 added this to the v0.27 (m6-6.20) milestone Jun 6, 2023
@YrrepNoj YrrepNoj self-assigned this Jun 6, 2023
@Racer159 Racer159 modified the milestones: (2023.07.04), The Bucket Jun 6, 2023
Racer159 added a commit that referenced this issue Jun 28, 2023
fixes #1791

---------

Co-authored-by: Wayne Starr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants