GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(watch): stop swallowing SetRecursive errors via nolint by glours · Pull Request #14165 · docker/compose

Conversation

@glours

@glours glours commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

What I did
Split SetRecursive into the existing per-GOOS watcher files instead of a runtime check + nolint: the non-Windows stub never calls the always-failing SetRecursive, and Windows failures now propagate as a real error instead of silently downgrading to non-recursive.

Related issue

Addresses review from thaJeztah on #14164.

(not mandatory) A picture of a cute animal, if possible in relation to what you did

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@glours
fix(watch): stop swallowing SetRecursive errors via nolint
88362a7
Split SetRecursive into the existing per-GOOS watcher files instead of
a runtime check + nolint: the non-Windows stub never calls the
always-failing SetRecursive, and Windows failures now propagate as a
real error instead of silently downgrading to non-recursive.

Addresses review from thaJeztah on docker#14164.

Signed-off-by: Guillaume Lours <[email protected]>
@glours
glours marked this pull request as ready for review September 2, 2026 07:44
@glours
glours requested review from a team as code owners September 2, 2026 07:44
@glours
glours requested a review from ndeloof September 2, 2026 07:44
@glours glours self-assigned this Sep 2, 2026
@glours glours mentioned this pull request Sep 2, 2026
build: bump golangci-lint to v2.13.2 #14164
Merged
docker-agent
docker-agent reviewed Sep 2, 2026
View reviewed changes

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The refactor is correct and clean. The non-Windows stub () returns , faithfully preserving the previous behaviour where always failed on non-Windows and the watcher continued non-recursively. The Windows implementation () now properly propagates failures as real errors instead of silently downgrading — exactly the intent stated in the PR description. No logic errors, no compilation issues, and no behavioural regressions were found in the changed code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
docker-agent
docker-agent reviewed Sep 2, 2026
View reviewed changes

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The refactor cleanly splits SetRecursive into per-GOOS stubs. The non-Windows stub correctly returns (false, nil) without calling SetRecursive, and the Windows implementation properly propagates errors instead of silently discarding them. No issues found in the changed code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thaJeztah

thaJeztah commented Sep 2, 2026

Copy link
Copy Markdown
Member

@crazy-max probably a hiccup, but in case there's things we can handle here; https://github.com/docker/compose/actions/runs/33605059254/job/100167169430?pr=14165

Use 3.0.6 version spec cache key for v3.0.6
GitHub Actions cache disabled
Downloading https://github.com/sigstore/cosign/releases/download/v3.0.6/cosign-linux-amd64
Downloading keyless verification bundle at https://github.com/sigstore/cosign/releases/download/v3.0.6/cosign-linux-amd64.sigstore.json
Verifying keyless verification bundle signature
Fetching Sigstore TUF trusted root metadata
TUFError: error refreshing TUF metadata
    at getTargetPath (/home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/@sigstore/tuf/dist/target.js:51:15)
    at async readTarget (/home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/@sigstore/tuf/dist/target.js:26:18)
    at async Module.getTrustedRoot (/home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/@sigstore/tuf/dist/index.js:33:25)
    at async Sigstore.verifyArtifact (file:///home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/lib/sigstore/sigstore.js:336:29)
    at async Install.verifySignature (file:///home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/lib/cosign/install.js:158:30)
    at async Install.download (file:///home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/lib/cosign/install.js:70:13)
    at async eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:64949:16), <anonymous>:16:23)
    at async main (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:65100:20) {
  code: 'TUF_REFRESH_METADATA_ERROR',
  cause: DownloadHTTPError: Failed to download
      at /home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/tuf-js/dist/fetcher.js:111:29
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async RetryOperation.<anonymous> (/home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/@gar/promise-retry/lib/index.js:46:24) {
    statusCode: 403
  }
}
Error: Unhandled error: TUFError: error refreshing TUF metadata
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thaJeztah
thaJeztah approved these changes Sep 2, 2026
View reviewed changes

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crazy-max

crazy-max commented Sep 2, 2026

Copy link
Copy Markdown
Member

@crazy-max probably a hiccup, but in case there's things we can handle here; https://github.com/docker/compose/actions/runs/33605059254/job/100167169430?pr=14165

Use 3.0.6 version spec cache key for v3.0.6
GitHub Actions cache disabled
Downloading https://github.com/sigstore/cosign/releases/download/v3.0.6/cosign-linux-amd64
Downloading keyless verification bundle at https://github.com/sigstore/cosign/releases/download/v3.0.6/cosign-linux-amd64.sigstore.json
Verifying keyless verification bundle signature
Fetching Sigstore TUF trusted root metadata
TUFError: error refreshing TUF metadata
    at getTargetPath (/home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/@sigstore/tuf/dist/target.js:51:15)
    at async readTarget (/home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/@sigstore/tuf/dist/target.js:26:18)
    at async Module.getTrustedRoot (/home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/@sigstore/tuf/dist/index.js:33:25)
    at async Sigstore.verifyArtifact (file:///home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/lib/sigstore/sigstore.js:336:29)
    at async Install.verifySignature (file:///home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/lib/cosign/install.js:158:30)
    at async Install.download (file:///home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/lib/cosign/install.js:70:13)
    at async eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:64949:16), <anonymous>:16:23)
    at async main (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:65100:20) {
  code: 'TUF_REFRESH_METADATA_ERROR',
  cause: DownloadHTTPError: Failed to download
      at /home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/tuf-js/dist/fetcher.js:111:29
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async RetryOperation.<anonymous> (/home/runner/work/compose/compose/node_modules/@docker/github-builder-runtime/node_modules/@gar/promise-retry/lib/index.js:46:24) {
    statusCode: 403
  }
}
Error: Unhandled error: TUFError: error refreshing TUF metadata

Yes this will be solved with sigstore/sigstore#2396 and sigstore/sigstore-go#671

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crazy-max crazy-max mentioned this pull request Sep 2, 2026
sigstore: retry TUF metadata fetches docker/actions-toolkit#1297
Merged
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/watch/watcher_naive.go 33.33% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@glours
glours merged commit 05066c2 into docker:main Sep 2, 2026
133 of 139 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@glours
glours deleted the fix/naive-watcher-recursive-goos branch September 2, 2026 13:07
@BrewTestBot BrewTestBot mentioned this pull request Sep 3, 2026
docker-compose 5.5.1 Homebrew/homebrew-core#302212
Merged
@rancherbot rancherbot mentioned this pull request Sep 4, 2026
rddepman: bump dockerCompose from 5.5.0 to 5.5.1 rancher-sandbox/rancher-desktop#10918
Merged
@r-desktop-workflow-from-workflow r-desktop-workflow-from-workflow Bot mentioned this pull request Sep 10, 2026
rddepman: bump dockerCompose from 5.3.1 to 5.5.1 rancher-sandbox/rancher-desktop-2#747
Merged
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
HarmonybrewBot HarmonybrewBot
!18270 merge bump-docker-compose-5.5.1 into main
de47f3e
docker-compose 5.5.1

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
### ✨ Improvements
* Feat(hooks): capture and surface lifecycle hook output by @glours in docker/compose#14091
* Feat(tracing): surface otel shutdown errors via `--debug` by @htoyoda18 in docker/compose#14152

### 🐛 Fixes
* Fix(events): validate service names before subscribing to events by @glours in docker/compose#14076
* Fix: bake target names collision for services differing by `.` vs `_` by @ndeloof in docker/compose#14058
* Fix(watch): sync into a symlinked directory instead of failing by @Endika in docker/compose#14084
* Fix(hooks): include hook output in the error when a hook fails by @dennislapchenko in docker/compose#14088
* Fix(build): TTY progress on Windows — hand the real stdout to buildkit by @ndeloof in docker/compose#14090
* Fix(watch): sync all files on `initial_sync`, regardless of mtime by @glours in docker/compose#14096
* Fix(network): pass IPAM options when creating networks by @glours in docker/compose#14094
* Fix(ps): honor psFormat from Docker CLI config when no `--format` flag given by @glours in docker/compose#14095
* Fix: dependency wait timeout surfaced only by luck by @ndeloof in docker/compose#14105
* Fix: hold startMx on the start path actually exercised by @ndeloof in docker/compose#14106
* Fix(watch): exclude Dockerfile and compose files from initial sync by @htoyoda18 in docker/compose#14117
* Fix(display): stop ttyWriter.Done from hanging after context cancel by @glours in docker/compose#14119
* Fix(build): honor provenance/sbom false in per-service bake attest by @glours in docker/compose#14112
* Fix(compose): reject unknown subcommands under bridge/transformations by @glours in docker/compose#14143
* Fix(plugins): honor PATHEXT for provider lookup on Windows by @ndeloof in docker/compose#14159
* Fix(watch): stop swallowing SetRecursive errors via nolint by @glours in docker/compose#14165
* Fix(bridge): confirm before wiping non-empty convert output dir by @glours in docker/compose#14174
* Fix(down): spare dangling images of orphaned services, like their tagged image by @htoyoda18 in docker/compose#14154

### 🔧  Internal
* CI: raise e2e go-test timeout to 20m by @ndeloof in docker/compose#14072
* Lint: replace gocyclo with gocognit by @ndeloof in docker/compose#14057
* Test(e2e): prepend provider bin dir to PATH in provider tests by @glours in docker/compose#14079
* Refactor: dismantle the gocognit hotspots, one concern per function by @ndeloof in docker/compose#14060
* Test(e2e): declarative Scenario layer, project files under testdata/<TestName>/ by @ndeloof in docker/compose#14087
* Docs: document engine container event sequences in up monitor by @ndeloof in docker/compose#14024
* E2E: fix test resource isolation and make standalone parallelism configurable by @glours in docker/compose#14073
* API: ScaleOptions carries the replica counts by @ndeloof in docker/compose#14077
* Chore: explicit, unique, greppable internal names by @ndeloof in docker/compose#14049
* Docs: update CONTRIBUTING.md to reflect current tooling and practices by @glours in docker/compose#14098
* API: option structs document what the implementation actually honors by @ndeloof in docker/compose#14078
* Test: unit-lock the imperative start path by @ndeloof in docker/compose#14104
* CLI: display.Mode always resolves to the mode actually rendered by @ndeloof in docker/compose#14103
* CI: validate generated mocks are in sync by @ndeloof in docker/compose#14102
* Docs(sdk): document the EventProcessor API that actually exists by @ndeloof in docker/compose#14131
* Test(e2e): gate the e2e suite behind the build tag the docs already promise by @ndeloof in docker/compose#14132
* Build: error messages name the real remedy, not a removed builder by @ndeloof in docker/compose#14133
* Docs(contributing): legibility guidelines — comments state behavior, not history by @ndeloof in docker/compose#14135
* Test(docs): compile the sdk.md examples by @ndeloof in docker/compose#14136
* Chore(compose): rename convergence.go, whose convergence engine no longer exists by @ndeloof in docker/compose#14129
* Chore(compose): comments state behavior, not history by @ndeloof in docker/compose#14130
* Test(build): re-enable wrong ssh key id test by @htoyoda18 in docker/compose#14120
* Chore(compose): orphan semantics stated where up and down diverge by @ndeloof in docker/compose#14142
* Refactor: NewGraph stops mutating the project by @ndeloof in docker/compose#14124
* Test(e2e): bump compose-bridge images to v0.0.7 by @ricardobranco777 in docker/compose#14170

### ⚙️ Dependencies
* Build(deps): bump github/codeql-action/upload-sarif from 4.37.6 to 4.37.7 by @dependabot[bot] in docker/compose#14101
* Remove buildx as a Go dependency by @ndeloof in docker/compose#14123
* Chore(deps): github.com/sirupsen/logrus v1.10.2, google.golang.org/grpc v1.83.2 by @thaJeztah in docker/compose#14137
* Build: bump golangci-lint to v2.13.2 by @ndeloof in docker/compose#14164
* Build(deps): bump github/codeql-action/upload-sarif from 4.37.7 to 4.37.9 by @dependabot[bot] in docker/compose#14167
* Update to go1.26.8 by @thaJeztah in docker/compose#14172
* Feat(deps): github.com/moby/buildkit v0.33.0 by @thaJeztah in docker/compose#14171
* Build(deps): golang.org/x/crypto v0.56.0 by @thaJeztah in docker/compose#14173
* Bump compose-go to version v2.15.0 by @glours in docker/compose#14178

## New Contributors
* @dennislapchenko made their first contribution in docker/compose#14088

**Full Changelog**: docker/compose@v5.5.0...v5.5.1
</pre>
  <p>View the full release notes at <a href="https://github.com/docker/compose/releases/tag/v5.5.1">https://github.com/docker/compose/releases/tag/v5.5.1</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!18270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@thaJeztah thaJeztah thaJeztah approved these changes
@ndeloof ndeloof Awaiting requested review from ndeloof ndeloof is a code owner automatically assigned from docker/compose-maintainers
+1 more reviewer
@docker-agent docker-agent docker-agent left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@glours glours

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@glours @thaJeztah @crazy-max @docker-agent
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.