sandstorm-io/vagrant-spk

We should add `vagrant-spk unpack`

ocdtrekkie opened this issue · 4 comments

The spk unpack command mostly exists for Sandstorm itself to install an app. However, we should ensure that it is available to developers on Windows/Mac as well by supporting a vagrant-spk unpack command. A particular interest here is that a user may wish to grab old binaries out of an old SPK or may wish to swap out components of an existing SPK and repack it.

So we should ensure the flow of vagrant-spk unpack -> vagrant-spk vm up -> vagrant-spk dev -> vagrant-spk pack is a workable flow for this.

Related discussion sandstorm-io/sandstorm#3391 (comment)

@zenhack confirmed a fear I had, that the build scripts are not included in the SPK.

I think we should fix that as part of this issue. Build scripts are super small and it would be good if the required information exists in an SPK to unpack it and then pack it again easily.

I feel like if we have the .sandstorm folder we should have most of it for most apps? At minimum, it'll put one in a good position to know what they're missing. (Of course, the only scenario you likely need to hunt down someone and ask for what's missing is if it's a proprietary app.)