WIP: fix(recipe): Prevent crash when recipe has no previous tag or release #706
Reference in New Issue
Block a user
No description provided.
Delete Branch "p4u1/abra:fix-crash-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thanks @p4u1.
One comment, as I'm not quite sure on the approach.
And an integration test, which creates a new recipe and syncs it, would be great.
🙏
@ -132,3 +133,3 @@}latestRelease := tags[len(tags)-1]latestRelease := "0.0.0+0.0.0"Isn't the left-hand side supposed to be
1.0.0/0.1.0following:I thought this case was covered 🤔 The logic of the code above doesn't look right because it tests
len(tags) == 0and then accesstagslater on 😬 I would assume if have no previous release/tag we can construct a choice from the above question and the tag of theapp? Otherwise, probably0.0.0+0.0.0is going to explode somewhere else 🙃dc0cc20141toe11f775260@decentral1se thanks for the review. I still have to dive deeper into this... I'm just adding fixes while working on a new recipe and abra panicing
fix(recipe): Prevent crash when recipe has no previous tag or releaseto WIP: fix(recipe): Prevent crash when recipe has no previous tag or release@p4u1 I wired up a bunch of tests to cover some cases where this might have been going wrong:
ce1aa3d870It doesn't seem to be failing in any obvious way? I'd be curious if you can reproduce your stack trace?
Bonus: it's actually not that bad to simulate user input with the 'ol
bash -c "echo ... | ..."trick!#738
I am trying to develop a recipe for Friendica. I think I ran into this problem. I run this command for the first time:
abra app deploy friendica.example.dk --chaosAnd I get:
Do you have a quick fix I can use, while you get the fix into abra release?
Thanks!!
@jeppebundsgaard can you open up a new issue with the output of the command while using
--debug? Thanks!View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.