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

Merged
decentral1se merged 2 commits from p4u1/abra:app-new-first-time into main 2025-08-11 12:47:44 +00:00
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 v0.11.x project 2025-04-25 09:16:55 +00:00
decentral1se moved this to In Progress in Abra v0.11.x 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 v0.11.x on 2025-05-11 08:24:48 +00:00
decentral1se moved this to Stalled in Abra v0.11.x on 2025-07-08 10:08:00 +00:00
p4u1 added 1 commit 2025-08-11 09:40:13 +00:00
Author
Member

Changed it to a debug log

Changed it to a debug log
decentral1se merged commit 3fae036db2 into main 2025-08-11 12:47:44 +00:00
decentral1se moved this to Done in Abra v0.11.x on 2025-08-12 05:21:16 +00:00
Sign in to join this conversation.
No description provided.