Closed lengau closed 4 months ago
what use case is this for?
@sergiusens An example here is charmcraft's init
command. I was overzealous checking for a nonexistent project directory and it ended up breaking a lot of spread tests (e.g. https://github.com/canonical/charmcraft/blob/main/tests/spread/smoketests/basic/task.yaml)
I am not certain this use case is a good one to allow for this though
@sergiusens by "this" are you referring to loading the project directory altogether in craft-application or only to the change here?
If the former, I think it's reasonable to roll back the entire change (we can implement it per-application) - the latter is necessary for the former though
Some commands (e.g.
init
) might want to provide a project directory but not require it to exist. In these cases, we should only fail if what exists already is incompatible.tox
?