Skip to content

Overwrite all files when not in non interactive mode #963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 1.x
Choose a base branch
from

Conversation

shyim
Copy link
Contributor

@shyim shyim commented Jan 5, 2023

When I run recipes:install --reset --force -n no files are overwritten, as the default as been set to false.

There is currently also no way to accept that, so I changed it back to true

@shyim shyim changed the title Overwrite all files when in non interactive mode Overwrite all files when not in non interactive mode Jan 5, 2023
@stof
Copy link
Member

stof commented Apr 8, 2025

Note that this default should impact only files for which git cannot give us the modified state or untracked files. Existing files created by recipes are supposed to be tracked files. What is your workflow in which no files are being overwritten ?

@shyim
Copy link
Contributor Author

shyim commented Apr 10, 2025

We have many customers that don't use Git (yes it's bad). Therefore they can't use the recipes:update command, so we tell them to use recpies:install --reset --force -n and diff them on their own (or create only new yaml files, don't touch existing ones).

As no file is tracked, flex asks for like 30 files this question, and for non interactive sessions, it did no changes as the default was false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants