Open zombiezen opened 8 years ago
I'm curious if the following workflow would work instead:
$ git clone https://example.com/myproject.git myproject $ cd myproject $ mkdir -p contrib/sandstorm $ cd contrib/sandstorm $ vagrant-spk setupvm --app-base-dir=../..
things in
top-level project. $ vagrant-spk vm up
That would happen to be even easier for us to implement, I think; curious what you think about that Ross.
In your proposal, would --app-base-dir
ever be something that's not a sequence of ../
path components?
I think it would always be a series of "../" path components in my proposal. (That way, one can be relatively sure that the app-base-dir is portable across different systems that are "git clone"-ing the same repo.)
As a user, I'm more in favor of specifying the subdirectory while cd'd into the project root, since it's far easier for me to type the path I want versus I always mess up sequences of ../
. :)
Sensible enough!
From an email thread with @paulproteus, it would be really nice to be able to create the .sandstorm directory in a subdirectory of the project directory -- some projects want to keep their packaging scripts in a contrib/ directory, for instance. I'm envisioning this:
This way, all that has to change is the scripts that are generated in the directory. The rest of vagrant-spk acts as-is.