-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
package:yaml_edittype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
Reproduction:
> dart --version
Dart SDK version: 3.1.0-227.0.dev (dev) (Sun Jun 18 18:21:21 2023 -0700) on "linux_x64"
# pubspec.yaml
name: sample
version: 0.1.0
environment:
sdk: ^3.0.0
dependencies:
dev_dependencies:
retry:
No pubspec.lock.
dart pub add retry
"retry" was found in dev_dependencies. Removing "retry" and adding it to dependencies instead.
Assertion failed: (package:yaml_edit) Modification did not result in expected result.
# YAML before edit:
> name: sample
> version: 0.1.0
> environment:
> sdk: ^3.0.0
> dependencies:
> retry: ^3.1.2
> dev_dependencies:
> retry:
# YAML after edit:
> name: sample
> version: 0.1.0
> environment:
> sdk: ^3.0.0
> dependencies:
> retry: ^3.1.2
> :
Please file an issue at:
https://github.com/dart-lang/yaml_edit/issues/new?labels=bug
package:yaml_edit/src/editor.dart 565:7 YamlEditor._performEdit
package:yaml_edit/src/editor.dart 432:5 YamlEditor.remove
package:pub/src/command/add.dart 722:24 AddCommand._updatePubspec
package:pub/src/command/add.dart 239:28 AddCommand.runProtected
This is an unexpected error. The full log and other details are collected in:
/usr/local/google/home/sigurdm/.pub-cache/log/pub_log.txt
Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.
Metadata
Metadata
Assignees
Labels
package:yaml_edittype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)