Repository navigation
Conversation
A Windows checkout (core.autocrlf=true) materializes .env.example as CRLF, so every value carries a trailing CR. ensure_runner_token matched the empty ARTEX_RUNNER_TOKEN line through '.', left it empty, and compose failed the required-variable interpolation before the build. Both install.sh and update.sh now convert .env to LF first and require a non-whitespace value before treating the token as set. Found by the isolated fresh-install test: the copied .env reproduced the failure before the fix and installs cleanly after it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Found by the isolated fresh-install test, not by reading the script.
A Windows checkout (
core.autocrlf=true) materializes.env.exampleas CRLF, so every line in the generated.envends with\r.ensure_runner_tokenusedgrep -q '^ARTEX_RUNNER_TOKEN=.', where.matches the\r: the empty token line looked set, the token was never generated, anddocker composefailed before the build with:The same trailing
\ralso reaches PostgreSQL as part ofPOSTGRES_PASSWORD.Fix
install.shandupdate.shconvert.envto LF before reading it (normalize_env), both for an existing file and right after the.env.examplecopy.^ARTEX_RUNNER_TOKEN=[^[:space:]], so an empty value is never treated as set even if a stray terminator remains.Verification
bash -n install.sh update.sh: PASS..env(POSTGRES_PASSWORD=testpw123, empty token): after the fix the file is LF, the token is generated, the password is preserved. Before the fix the token stayed empty and compose rejected the interpolation..envand installs cleanly after the conversion.No Go code, no schema, no config format change.