Skip to content

fix: explain an installation found in the plain output, and take over one started from docker-compose.yaml - #15

Merged
blaipr merged 1 commit into
mainfrom
fix/found-install-explained
Oct 19, 2026
Merged

blaipr merged 1 commit into
mainfrom
fix/found-install-explained

Conversation

@blaipr

@blaipr blaipr commented Oct 19, 2026

Copy link
Copy Markdown
Member

Summary

  • The plain output (a terminal smaller than 80x22) prints each question's help before it, as the full screen shows it beside it: an installation found now says what it is and why it can or cannot be taken over.
  • A compose project started from docker-compose.yaml, compose.yaml or compose.yml is read from that file and can be taken over. Its first backup or upgrade renames it docker-compose.yml, and moves aside any other compose file compose would read first.
  • A missing compose file or .env and an unreadable one get their own explanations, naming the file; root is no longer told to run as root.
  • An installation already at the version the installer installs is offered as Take over, with no upgrade wording.

Test plan

  • go vet, go test ./... as root and as a non-root user
  • New tests: TestFindComposeYaml, TestProjectComposeFile, TestRepoComposeName, TestCurrent, TestReasonNamesTheFile, TestPlainHelp
  • A compose project from docker-compose.yaml at 7.3.0, in a 12-row terminal: the 7.3.0 installer offers only Install beside it / Stop with no explanation; this branch explains it, takes it over and says there is nothing to upgrade

… one started from docker-compose.yaml

The plain output, used in a terminal smaller than 80x22, never showed a question's help: an
installation found was offered without saying what it was or why it could not be taken over.

An installation started from docker-compose.yaml, compose.yaml or compose.yml is now read from
that file and taken over; its first backup or upgrade renames it docker-compose.yml. A missing
compose file or .env, and one root cannot read, each get their own explanation. One already at
the version the installer installs is taken over without the word upgrade.
@blaipr
blaipr merged commit 3c3a9e2 into main Oct 19, 2026
4 checks passed
@blaipr
blaipr deleted the fix/found-install-explained branch October 19, 2026 18:44
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