fix: preserve global flags when sudo is sudo-rs

`sudo-rs`, the default sudo on Ubuntu 25.10 and later, does not support preserving the entire environment, so `--quiet`, `--trace`, `--force` and `--app` stopped taking effect once `dokku` re-executed itself as the `dokku` user, and a warning was printed on every invocation. Variables outside the set dokku forwards no longer cross that boundary and can be named in `DOKKU_PRESERVE_ENV` instead.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-09-20 04:11:15 -04:00
1 parent c04e74c668
commit 6b1b7bc6f6
14 files changed
+403 -10

No files matched your search

+13
View File
@@ -219,6 +219,19 @@ jobs:
name: coverage.${{ matrix.index }}
path: test-results/coverage
sudo-preserve-env:
name: sudo-preserve-env
runs-on: ubuntu-26.04
needs: check-commit
if: ${{ needs.check-commit.outputs.skip != 'true' }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- name: check that the preserved environment survives sudo-rs
run: ./tests/ci/sudo_preserve_env.sh
publish-test-results:
name: publish-test-results
needs: unit-tests