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

Bundle creation fails with local zarf init package #1039

Open
mjnagel opened this issue Dec 9, 2024 · 0 comments
Open

Bundle creation fails with local zarf init package #1039

mjnagel opened this issue Dec 9, 2024 · 0 comments
Labels
possible-bug Something may not be working

Comments

@mjnagel
Copy link
Collaborator

mjnagel commented Dec 9, 2024

Environment

Device and OS: macOS
App version: 0.19.2
Kubernetes distro being used: N/A

Steps to reproduce

  1. Pull zarf's init package locally (zarf tools download-init).
  2. Attempt to include this in your bundle, for example something like this:
packages:
kind: UDSBundle
metadata:
  name: init-bundle
  version: "0.1.0"

packages:
  - name: zarf-init
    path: ./
    ref: 0.44.0

Expected result

Bundle creates successfully.

Actual Result

Bundle fails to create due to expecting a different path. Note:

     ERROR:  failed to create bundle: open <some-path-here>/zarf-package-zarf-init-arm64-0.44.0.tar.zst: no such file or directory

Whereas zarf init packages end up locally without the zarf-package prefix.

Severity/Priority

Low, this is unlikely to be something that people are doing, but could be hit with custom init packages if not desiring to publish them in a registry. Easy workaround to move/rename the file.

Additional Context

CLI just makes the assumption that local packages have zarf-package- as the prefix, possibly should also just check for zarf-init (I think the file is guaranteed to be named this for init packages, but worth confirming).

@mjnagel mjnagel added the possible-bug Something may not be working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible-bug Something may not be working
Projects
None yet
Development

No branches or pull requests

1 participant