Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

nitro composer commands fail when there is a space in a directory name in the path to the project #277

Closed
steverowling opened this issue Mar 5, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@steverowling
Copy link

Description

When there is a space in a directory name in the path to the project, running nitro composer commands, e.g. nitro composer install, the following error is thrown:

Error: unable to create the volume, Error response from daemon: create users_steve_synologydrive_work_nib insurance_02 website design_nib-insurance_composer_7.4: "users_steve_synologydrive_work_nib insurance_02 website design_nib-insurance_composer_7.4" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path

The site works fine and nitro craft commands all seem to work correctly, it's just the nitro composer commands that seem to be affected.

Steps to reproduce

  1. Install nitro and use nitro add to add a project in a directory with a space somewhere in the path name.
  2. Attempt to run a nitro composer command, e.g. nitro composer install in the project directory.
  3. The error shown above is thrown and the command fails.

Additional info

  • Nitro version: 2.0.3
  • Docker version: 3.1.0 (51484)
@steverowling steverowling added the bug Something isn't working label Mar 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant