You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a generator copies a file and then tries to add more content into it there will be a conflict
this.fs.copyTpl(this.templatePath('_appsettings.json.properties'), 'appsettings.json.properties', this);
// later
this.fs.append('appsettings.json.properties', 'DATA_SOURCE=db');
User will be prompted:
conflict appsettings.json.properties
? Overwrite appsettings.json.properties? overwrite
force appsettings.json.properties
It's completely misleading as actually there's no any conflict. The file didn't exist before the run. It's just adding more content in the same session.
The text was updated successfully, but these errors were encountered:
I'm running into this same problem. I'm trying to clone a repository, and then append some values from the generator options.
My workaround, for now, is to use spawnCommand to run the git clone, read the contents of the file I want to append to, use spawnCommand to delete it, and then then this.fs.write to write the file with added values. Oddly enough if I use this.fs.delete, it still throws the conflict.
If a generator copies a file and then tries to add more content into it there will be a conflict
User will be prompted:
It's completely misleading as actually there's no any conflict. The file didn't exist before the run. It's just adding more content in the same session.
The text was updated successfully, but these errors were encountered: