spkenv / spk

A Package Manager for high velocity software environments, built on spfs.
https://spkenv.dev
Apache License 2.0
34 stars 5 forks source link

`spk build --env` should leave you in the environment on failure #190

Open lgritz opened 2 years ago

lgritz commented 2 years ago

spk build --env help says "Build the first variant of this package, and then immediately enter a shell environment with it."

It should do this if the build fails, as well as if it succeeds. (Super handy on failure to poke around the environment to know why.

Also, sure would be nice if it wasn't only the first variant you could do this with. --variant N would be great.

rydrman commented 2 years ago

From the meeting today -> this one needs some investigation about how it would work and how we could effectively turn the non-interactive build script shell into an interactive one (or some other solution).

Alternatively, we could also look at a new flag that will save the build environment in spfs upon failure so that you can re-enter it later? (If the above is not possible)