Skip to content

fix: suppress files_pull warning when provider has files_import_command, fixes #8103 - #8123

Merged
rfay merged 1 commit into
ddev:mainfrom
jonesrussell:20260209_pull_files_message
Feb 10, 2026
Merged

rfay merged 1 commit into
ddev:mainfrom
jonesrussell:20260209_pull_files_message

Conversation

@jonesrussell

Copy link
Copy Markdown
Contributor

The Issue

When a provider defines only files_import_command (no files_pull_command), such as Acquia, ddev pull still prints "No files_pull_command provided, so skipping files pull" and then runs the custom import. That message is misleading because files are being handled via the import command.

How This PR Solves The Issue

In doFilesPullCommand() we only emit the warning when the provider has neither files_pull_command nor files_import_command. If the provider has files_import_command, we skip the pull step without warning; the existing "Importing files via custom files_import_command..." message is sufficient.

Manual Testing Instructions

  1. Configure a project for a provider that has only files_import_command (e.g. Acquia: .ddev/providers/acquia.yaml with files_import_command and no files_pull_command).
  2. Run ddev pull acquia (or that provider) without --skip-files.
  3. Confirm the "No files_pull_command provided..." message no longer appears.
  4. Confirm "Importing files via custom files_import_command..." still appears and files are imported.
  5. Optional: Test a provider with neither command to confirm the warning still appears; and a provider with both to confirm no regression.

Automated Testing Overview

No new tests. Single conditional change in provider logic; existing provider behavior (pull-only, both, or neither) unchanged. go build and golangci-lint pass.

Release/Deployment Notes

No config or API changes. Only the message shown when a provider uses files_import_command only is changed (warning suppressed). No deployment impact.

@jonesrussell
jonesrussell requested a review from a team as a code owner February 10, 2026 03:15
@jonesrussell
jonesrussell force-pushed the 20260209_pull_files_message branch from 0223006 to a2ca84c Compare February 10, 2026 03:17
@jonesrussell jonesrussell changed the title fix: don't warn "skipping files pull" when provider uses files_import… fix: don't warn 'skipping files pull' when provider uses files_import… Feb 10, 2026
@jonesrussell jonesrussell changed the title fix: don't warn 'skipping files pull' when provider uses files_import… fix: don't warn skipping files pull when provider uses files_import… Feb 10, 2026
@jonesrussell jonesrussell changed the title fix: don't warn skipping files pull when provider uses files_import… fix: suppress files_pull warning when provider has files_import_command, fixes #8103 Feb 10, 2026
@jonesrussell jonesrussell changed the title fix: suppress files_pull warning when provider has files_import_command, fixes #8103 fix: suppress files_pull warning when provider has files_import_command, fixes #8103 Feb 10, 2026
@github-actions

Copy link
Copy Markdown

@rfay rfay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay, thanks!

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks good to me.

@rfay
rfay merged commit 4378a13 into ddev:main Feb 10, 2026
32 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ddev pull shouldn't say "No files_pull_command provided, so skipping files pull" if provider uses files_import_command

3 participants