You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using flux build artifact --path=src --output=result.tgz, Flux seems to generate an empty OCI artifact if src contains symlinks to YAML manifest outside of src.
The use case is using Flux to generate OCI artifacts from a symlink tree built by Nix, with YAML files pointing to the read-only Nix store.
Ideally Flux should resolve symlinks when creating OCI artifacts. Additionally, it should use a temporary directory (or allow specifying one) for any temporary files, which would allow working with source files located in the Nix store.
Screenshots and recordings
No response
OS / Distro
NixOS 24.05
Flux version
v2.4.0
Flux check
N/A
Git provider
N/A
Container Registry provider
GitHub (ghcr.io), but irrelevant here
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Symlinks are skipped by the CLI since source-controller does not supports them and it will error out at pull time. I'm for adding a --resolve-symlinks flag to the CLI that would create a tmp dir with the whole content before generating the artifact.
Describe the bug
When using
flux build artifact --path=src --output=result.tgz
, Flux seems to generate an empty OCI artifact ifsrc
contains symlinks to YAML manifest outside ofsrc
.The use case is using Flux to generate OCI artifacts from a symlink tree built by Nix, with YAML files pointing to the read-only Nix store.
Steps to reproduce
Expected behavior
Expected output:
Actual output:
Ideally Flux should resolve symlinks when creating OCI artifacts. Additionally, it should use a temporary directory (or allow specifying one) for any temporary files, which would allow working with source files located in the Nix store.
Screenshots and recordings
No response
OS / Distro
NixOS 24.05
Flux version
v2.4.0
Flux check
N/A
Git provider
N/A
Container Registry provider
GitHub (ghcr.io), but irrelevant here
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: