Closed wokalski closed 3 weeks ago
I've come across a similar error on macOS, and I think I've figured out why it's happening. It looks like it's related to how nix-helm handles charts. I've found that it builds just fine if I comment out the charts
part from mkEnv
.
Unfortunately I don't have a darwin machine to debug this. It'd be great if someone who does could take a look at this.
@mrtz-j i'm happy to take a look at it to fix it but it'd be much easier if you share your patch with me so that I can at least trace what's going on. Based on that error I pasted it was hard for me to understand the real reason.
Manually running the nix build
command that the nixidy cli wrapper runs with --show-trace
appended might provide more info.
I was able to track it down to helm.releases
in modules/applications/helm.nix
. When I commented out that part of my application, the nixidy switch
worked.
Could either of you provide a full stack trace by manually running the nix build with --show-trace
? Maybe I can see any clues as to what needs to be fixed.
I've attached a full stack trace from the following command nix -Lv --show-trace build .#nixidyEnvs.aarch64-darwin.prod.environmentPackage
here: trace.txt
fromYAML in nix-kube-generators uses busybox seems like :/
https://github.com/farcaller/nix-kube-generators/blob/master/lib/default.nix#L11
In the short term we could bring our own implementation in nixidy as I want it to work on Mac OS too.
yq doesn't even need to be piped into so this should be fairly simple.
I created a new branch fix/from-yaml
that fixes the function implementation in nixidy. It passes lib and module tests but could you try it on mac os?
Yay, the fix works on aarch64-darwin
. I was able to successfully generate the resources for a chart.
Awesome! I merged it to main now. Thanks for the help with debugging.
No problem, thanks for the quick fix.
I have a remote linux builder set up so it's not a big deal but currently it's not possible to run nixidy build on my laptop. It fails with:
workaround:
nix build ".#nixidyEnvs.x86_64-linux.pl-3.environmentPackage"