Skip to content

fix(prelaunch): survive set -u when app-compose sources script (v0.0.20) - #116

Merged
Leechael merged 1 commit into
mainfrom
fix/pre-launch-nounset
Aug 31, 2026
Merged

fix(prelaunch): survive set -u when app-compose sources script (v0.0.20)#116
Leechael merged 1 commit into
mainfrom
fix/pre-launch-nounset

Conversation

@Leechael

@Leechael Leechael commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Syncs Phala Cloud official pre-launch script to v0.0.20.
  • dstack app-compose.sh sources pre_launch_script under set -euo pipefail; v0.0.19 died with DSTACK_DOCKER_USERNAME: unbound variable when no registry credentials were set.

Test plan

  • Diff against monorepo CURRENT_PRE_LAUNCH_SCRIPT (v0.0.20) for content parity
  • Source under set -euo pipefail with no DSTACK_* env and confirm completion (see monorepo regression test)

Mirror the Phala Cloud official pre-launch bump. dstack app-compose.sh now
runs with set -euo pipefail and sources pre_launch_script, so bare
"$DSTACK_DOCKER_USERNAME" aborts boot when registry credentials are unset.

- Expand optional env via ${VAR-}/${VAR:-}
- Default DOCKER_REGISTRY_TARGET before credential branches
- Flatten pipelines so the script has no backslash line continuations
- Keep fingerprint / password helpers nounset-safe
@Leechael
Leechael merged commit a70be05 into main Aug 31, 2026
6 checks passed
@Leechael
Leechael deleted the fix/pre-launch-nounset branch August 31, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant