-
Notifications
You must be signed in to change notification settings - Fork 16
--path feature for install cli not working as expected #376
Comments
Copying the actuall output from gist @naina-verma mentioned . Check for
|
@budhrg what's the state on this. Is the --path option available or not. It is not documented at least. |
@hferentschik Ya not properly documented. Will work with @Preeticp on it. |
Well, afaict there is also no help in the CLI itself. So it is not just a docs issue for sure. Also, the issue that the help system is only explorable if the VM is running still needs addressing. |
Related to #326 |
Fixed in #391 |
@hferentschik I was wrong here about the --path option value The value can be any path which doesn't need permission. Do you think the install-cli command should create those intermediate directories? In case the path need permission, the command will fail with system permission error. |
Sure. That was my expectation anyways. Provided the path exists and is writable there is no reason why we could not copy the binary there.
Not sure. I guess both works. Thinking about other tools, I think, however, that is is more common practice to expect the directory to exist. It also avoids the case that we create a recursive directory structure due to some simple typo in the path. WDYT on this one?
So assuming we require the path to exist, our code would verify it exists and is writable. If not an error would be logged and the command aborts. If we allow the path to not exist, we would create it recursively. On a side note, do we properly set the executable bit on the binary? It would imo make sense to verify that the file is executable after copying it into the specified location. This is regardless of --path is used or not. |
Yes, we are making it executable. I think this test definition is checking it so no need to worry 😄 |
👍 |
Resolved via pull request #416 |
--path feature for install cli not working as expected
Find issue details : https://gist.github.com/naina-verma/e03bdfb7bc60adaa22b2dbb75e48f604
tested on latest vsm
vagrant-registration (1.2.3) Version Constraint: 1.2.3 vagrant-service-manager (1.3.0.dev) Version Constraint: 1.3.0.dev vagrant-sshfs (1.2.0)
The text was updated successfully, but these errors were encountered: