Closed damdo closed 3 weeks ago
Thanks for the report. The command only fails if ~/gokrazy/hello exists but has no builddir, but nevertheless we should fix it.
We use the “chdir-or-fallback” logic in a number of places, so we should update at least those code paths that the old gokr-packer can reach.
When
gokr-packer
invokes the packing logic it also callsGenerateSBOM()
here.In turn within
GenerateSBOM
to set thebuildDir
we use theinstancePath
obtained viaconfig.InstancePath()
.Which for
gokr-packer
, where no instancePath is set, it falls back to~/gokrazy/hello
.This in turn breaks
gokr-packer
if~/gokrazy/hello
exists:To reproduce: