divnix / std

A DevOps framework for the SDLC with the power of Nix and Flakes. Good for keeping deadlines!
https://std.divnix.com
377 stars 41 forks source link

fix(ops/mkDevOCI): avoid undue symlink and improve ux #334

Closed GTrunSec closed 11 months ago

GTrunSec commented 11 months ago

fixes: #333

It appears that putting those two stages together would result in the entrypoints being overwritten.

blaggacao commented 11 months ago

Is there a way this can be resolved specifically via package priority instead? It is clear that a more special /bin/entrypoint from mkDevOCI should have a higher priority than the generic /bin/entrypoint from mkOCI.

Deviating the code-path from buildEnv might have the unintended side effect of not properly managing priorities in other cases where that behaviour is intended.

In other words, this fix breaks the API and I'd prefer one that doesn't.

GTrunSec commented 11 months ago

It's working! image

cat /etc/nix.conf
sandbox = false
accept-flake-config = true
experimental-features = nix-command flakes