Checking out HEAD instead of latest published recipe version #620
Closed
opened 2024-06-25 13:40:48 +00:00 by decentral1se
·
4 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#620
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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