onepub-dev / onepub-dev/docker2
waitFor is deprecated...
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
I'm getting this error when trying to get running containers:
Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121.
dart:cli waitFor
package:dcli/src/util/wait_for_ex.dart 38:17 waitForEx
package:dcli/src/functions/which.dart 97:5 which
package:dcli/src/util/runnable_process.dart 532:21 RunnableProcess._searchForCommandExtension
package:dcli/src/util/runnable_process.dart 245:21 RunnableProcess.start
package:dcli/src/util/runnable_process.dart 178:7 RunnableProcess.run
package:dcli/src/functions/run.dart 255:19 start
package:dcli/src/util/string_as_process.dart 201:11 StringAsProcess.start
package:docker2/src/docker_cli/docker.dart 138:10 Docker._dockerRun
package:docker2/src/docker_cli/docker.dart 150:14 dockerRun
package:docker2/src/docker_cli/containers.dart 31:19 Containers.containers
package:docker2/src/docker_cli/docker.dart 129:20 Docker.containers
I think dcli used by docker2 is using deprecated waitFor function. Latest version resolves this problem. Please update pubspec.yaml
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect pubspec.yaml and the dcli dependency first. Reproduce the container-listing path shown in the stack trace, then verify that updating dcli removes the deprecated waitFor error when listing running containers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, docker
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100