fix: error handling in abra recipe fetch -a #601

Merged
decentral1se merged 4 commits from fix/582 into main 2025-08-18 06:32:42 +00:00
Owner

Working on #582 and did some refactoring.

  • Only returns errors from recipe.Get so catalogue generation doesn't explode
  • Always validate recipe name (using catalogue local/remote) so we give better error messages

Gonna run the entire integration suite for this one... LGTM!

Working on https://git.coopcloud.tech/toolshed/abra/issues/582 and did some refactoring. * Only returns errors from `recipe.Get` so catalogue generation doesn't explode * Always validate recipe name (using catalogue local/remote) so we give better error messages ~~Gonna run the entire integration suite for this one...~~ LGTM!
decentral1se added 3 commits 2025-08-18 06:02:44 +00:00
This can slow things significantly down by requiring the catalogue and
if you don't have that, cause a slow `git clone`. However, the current
behvaiour is very confusing because it never actually checks if what the
user passes is actually a recipe. `abra recipe fetch DOESNTEXIST` gives
a better error to the user now. I'm hoping we can speed up the catalogue
handling at some point.
fix: return error, not log.Fatal
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
e2b4fffa65
See #582
decentral1se added 1 commit 2025-08-18 06:10:16 +00:00
test: retrieve abra-test-recipe by hand now
All checks were successful
continuous-integration/drone/push Build is passing
02238d1d82
decentral1se changed title from fix/582 to fix: error handling in `abra recipe fetch -a` 2025-08-18 06:11:29 +00:00
decentral1se added this to the Abra v0.11.x project 2025-08-18 06:12:26 +00:00
decentral1se moved this to In Progress in Abra v0.11.x on 2025-08-18 06:31:23 +00:00
decentral1se merged commit 60b3af1fa4 into main 2025-08-18 06:32:42 +00:00
decentral1se deleted branch fix/582 2025-08-18 06:32:42 +00:00
decentral1se moved this to Done in Abra v0.11.x on 2025-08-18 06:33:00 +00:00
decentral1se removed this from the Abra v0.11.x project 2025-08-30 10:14:56 +00:00
Sign in to join this conversation.
No description provided.