Bad Error Handling of Missing rpPath
and bpPath
in exact
export target
#301
Labels
bug
Something isn't working
rpPath
and bpPath
in exact
export target
#301
The
exact
export target shouldn't insert the default value of an empty string intobpPath
andrpPath
.With this behavior, the only thing that prevents Regolith from deleting entire project is the safety mechanism for file deletion. The safety mechanism is also the part of the code that reports the problem, which is misleading because the source of the problem is the unspecified export path.
Regolith should ask the user to provide a valid path when the
bpPath
andrpPath
aren't specified or are empty strings.The only case that should allow omitting specifying the
bpPath
andrpPath
is when the project itself doesn't have RP or BP. Alternatively, we could treat the empty path string as no export. This way usingexact
export target withoutbpPath
andrpPath
would be equivalent to using thenone
export target.The text was updated successfully, but these errors were encountered: