fix: Does not error when recipes folder does not exist in app new #552

Open
p4u1 wants to merge 1 commits from p4u1/abra:app-new-first-time into main
Member
No description provided.
p4u1 added 1 commit 2025-04-25 08:11:10 +00:00
fix: Does not error when recipes folder does not exist in app new
Some checks failed
continuous-integration/drone/pr Build is failing
508a7491b3
decentral1se reviewed 2025-04-25 08:44:25 +00:00
decentral1se left a comment
Owner

Nice! Can we get a test with this also? Otherwise, we're too easily getting regressions 🙏

Nice! Can we get a test with this also? Otherwise, we're too easily getting regressions 🙏
decentral1se added this to the Abra "next" project 2025-04-25 09:16:55 +00:00
decentral1se moved this to In Progress in Abra "next" on 2025-04-25 09:17:08 +00:00
Author
Member

I would love to write a test, but integration test is not possible, because it does not trigger with --no-input and a unit test is also not possible, because the function makes a dozen calls into the universe. This will need some serious refactoring, before we can test stuff like this :(

I would love to write a test, but integration test is not possible, because it does not trigger with --no-input and a unit test is also not possible, because the function makes a dozen calls into the universe. This will need some serious refactoring, before we can test stuff like this :(
Owner

OK yeh, fair enough 👍 I'd probably just log.Debug this or even skip the error altogether since abra will re-create the recipes dir on any further logic. It would seem to be a weird state to end up in but not something the user really needs to care about when it gets resolved internally? Merge away anyway with whatever you're happy with.

OK yeh, fair enough 👍 I'd probably just `log.Debug` this or even skip the error altogether since `abra` will re-create the recipes dir on any further logic. It would seem to be a weird state to end up in but not something the user really needs to care about when it gets resolved internally? Merge away anyway with whatever you're happy with.
decentral1se moved this to In Progress in Abra "next" on 2025-05-11 08:24:48 +00:00
Some checks failed
continuous-integration/drone/pr Build is failing
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u app-new-first-time:p4u1-app-new-first-time
git checkout p4u1-app-new-first-time
Sign in to join this conversation.
No description provided.