Checking out HEAD instead of latest published recipe version #620
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Follow-up for coop-cloud/organising#617. Opening so we don't lose track. Report to follow but other commands are suffering from this issue... @simon interested in trying to fix this soo-ish 👍
decentral1se referenced this issue2024-06-25 13:41:15 +00:00
OK, yes, this is an issue. Working on #584, I've noticed that a few commands do still default to checking out
HEADinstead of the latest published version. This might be some work to figure it out which commands are doing that and fix them up (adding--chaoswhere needed to keep the current functionality).#617 follow-upsto Checking out HEAD instead of latest published recipe versionOof this is worse than I thought 😬 Take this for example:
Then
abra app secretcommand will check outHEADand try to delete secrets in the current implementation 🙉 This can end up not finding secrets from previous versions or deleting new secrets unintentionally. The only way to work-around this atm is to pass--chaostoabra app secret rm ....abra app secretdoesn't take a<version>argument and I don't imagine that would be intuitive? I'm not sure on this. This example does seem to be the limit of howabraauto-magically selects which version to deal with.Do we maybe need to start thinking in terms of users selecting the version themselves? This would be a one-time operation to switch "modes" perhaps 🤔
abra app mode <domain> [--chaos] [<version>]or something (abra app version ...already taken...). So you couldabra app mode abra-test-recipe.example.com 0.1.1+1.20.2in the above example and all commands would use that version seamlessly? The default could be locking to the latest release version.This might actually dovetail quite nicely with fixing the version of the app in the
.envfile?Related: coop-cloud/organising#541
I think the best solution would be to fix the version of the app in the .env file.
as
<version>is an optional argument I would prefer to provide it as flag, like--app-version=this would be less confusing, especially for commands likeabra app secretOh shit right @moritz, I finally get that issue. Actually, I think it's a duplicate? Let's converge on coop-cloud/organising#541