Niktux / karma

http://karma-php.com
MIT License
19 stars 7 forks source link

Hydratations with option --targetPath is not idempotent #100

Open lebris opened 7 years ago

lebris commented 7 years ago

Running hydrate command more than on time with the --targetPath parameter leads to an exception.

[RuntimeException]                                                                                   
  The fileName "app.yml" is defined in 2 config folders (not allowed with targetPath config enabled)

How to reproduce :

$ git clone git@github.com:Onyx-org/skeleton.git && cd skeleton
$ make karma
$ mkdir pony
# First hydratation will be fine
$ ./karma hydrate --targetPath pony
# run it one again
$ ./karma hydrate --targetPath pony
lebris commented 7 years ago

ping @seblavenant

seblavenant commented 7 years ago

@lebris #102 enable target hydratation multiple times

Niktux commented 7 years ago

Fixed in #102

Niktux commented 7 years ago

Seems that it copies subdirectories

./karma hydrate --targetPath pony --no-title
Karma 5.5.3
Hydrate config/ with dev values

[INFO]    Reading master.conf
[INFO]    Reading databases.conf
[INFO]    Reading logger.conf
[INFO]    Reading twig.conf

  [Gaufrette\Exception\FileAlreadyExists]
  The file config/local/.gitkeep already exists and can not be overwritten.

hydrate [--cache] [--no-title] [-t|--targetPath TARGETPATH] [-e|--env ENV] [-s|--system SYSTEM] [--dry-run] [-b|--backup] [-o|--override OVERRIDE] [-d|--data DATA] [--] [<sourcePath>]...