fix: Throws an error when trying to deploy unstaged changes version #458
Closed
p4u1
wants to merge 1 commits from
(deleted):deploy-unstaged into main
pull from: (deleted):deploy-unstaged
merge into: :main
:main
:renovate/golang-1.27
:renovate/otel-weaver-0.x
:renovate/github.com-charmbracelet-bubbletea-2.x
:renovate/github.com-charmbracelet-log-2.x
:renovate/github.com-charmbracelet-lipgloss-2.x
:renovate/codespell-2.x
:local-integration-testing
:fix/492
:renovate/tonistiigi-xx-1.x
:renovate/alpine-3.x
:chore-deps
:fix/deps
:fix/613
Labels
Clear labels
bug
build
ci/cd
critical fix
design
documentation
duplicate
easy-first-issue
enhancement
help wanted
i10n
i18n
installer
invalid
question
release
release-candidate
security
tech-debt
test
wontfix
Something is not working
go build related issues
Building things with CI/CD
https://docs.coopcloud.tech/federation/resolutions/passed/010/
UI/UX
Documenting all the things
This issue or pull request already exists
Something for new people to get stuck into. We hope it's easy!
New feature
Need some help
Everything to do with localisation
Everything to do with internationalisation
Everything to do with the install script.
Something is wrong
More information is needed
Release management
Related to the new release candidate
Security related
Unit/integration testing
This won't be fixed
No labels
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/abra#458
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.
My take on toolshed/organising#651
deploy-unstagedto fix: Throws an error when trying to deploy unstaged changes versionI'm not sure about this.
Similar to coop-cloud/abra#459, I don't think we should try to catch every specific situation with an error because we don't know what people are actually doing in all cases. E.g. in this message you assume "coworker" because you manually deal with a
$ABRA_DIR/.gitbut for those that don't, this message could be confusing af?I'm starting to think we should added a field to
recipe.Recipewhich signals the unstaged changes instead of putting it in the actual hash string. Then we can continue just showing it on the deploy overview without blowing up the Git logic. I might try to add some additional visual triggers also. I'll try get a patch out for this.update: coop-cloud/abra#460
@@ -67,6 +68,9 @@ func (r Recipe) EnsureExists() error {// EnsureVersion checks whether a specific version exists for a recipe.func (r Recipe) EnsureVersion(version string) (bool, error) {if strings.Contains(version, "+ unstaged changes") {%s/+ unstaged changes/+U/ef95bce1e4/pkg/recipe/git.go (L250)coop-cloud/abra#460
Pull request closed