feat(cmd)!: run abra.sh commands with /bin/bash if available. #229
Closed
moritz
wants to merge 2 commits from
moritz/abra:main into main
pull from: moritz/abra:main
merge into: :main
:main
:renovate/golang-1.27
:renovate/github.com-charmbracelet-bubbletea-2.x
:fix/492
:local-integration-testing
:renovate/github.com-charmbracelet-lipgloss-2.x
:renovate/otel-weaver-0.x
:renovate/codespell-2.x
:renovate/tonistiigi-xx-1.x
:renovate/alpine-3.x
:renovate/github.com-charmbracelet-log-2.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#229
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.
Solving this issue: coop-cloud/organising#357
BREAKING CHANGE: abra.sh commands that depend on /bin/sh will break.
Nice one @moritz! I think the breaking change is OK since a lot of stuff was specifically relying on
/bin/shdue to a missing/bin/bash. So, with/bin/bashstill missing, those scripts will go on working. Typically, you have some guarantees over the shell environment of the target container and projects rarely switch this up in my experience. Let's see what the rest think.@@ -88,3 +88,3 @@}cmd := exec.Command("/bin/sh", "-c", sourceAndExec)var shell string = "/bin/bash"shell := "/bin/bash"is the style we've been using elsewhere in the codebase.@@ -201,3 +205,2 @@logrus.Debugf("running command: %s", strings.Join(cmd, " "))var shell string = "/bin/bash"shell := "/bin/bash"@@ -202,2 +206,2 @@logrus.Debugf("running command: %s", strings.Join(cmd, " "))var shell string = "/bin/bash"var findShell []string = []string{"test", "-e", shell}findShell := []string{"test", "-e", shell}💯
(folks on the chat seem to think this is great also, so let's merge it!)
🤔
I merged it by hand in
7f745ff19fPull request closed