my127 / workspace

Development environment tooling
MIT License
16 stars 13 forks source link

config dump fails when attribute defined twice in file #147

Open g-foster2020 opened 1 year ago

g-foster2020 commented 1 year ago
ws config dump --key=services.php-base.environment_secrets

attribute value:

  DB_PASS: xxxx
  RABBITMQ_PASSWORD: xxxx
  TIDEWAYS_APIKEY: xxxx
...
specified in:

 phar:///usr/local/bin/ws/vendor/symfony/filesystem/Path.php:514

 [ERROR] Symfony\Component\Filesystem\Path::makeRelative(): Argument #1 ($path) must be of type string, array given,
         called in phar:///usr/local/bin/ws/src/Types/Workspace/Builder.php on line 170

due to e.g.

attribute('services.php-base.environment_secrets.TIDEWAYS_APIKEY'): 
...
// mixed with
...
services:
    ...
    php-base:
        environment_secrets:

but code has implicit assumption that attribute only occurs once in file.