|
| 1 | +# GENERATED BY: test/validator/validations_output_test.dart |
| 2 | + |
| 3 | +## Section 0 |
| 4 | +$ pub publish --dry-run |
| 5 | +Resolving dependencies... |
| 6 | +Downloading packages... |
| 7 | +! bar 1.0.0 (overridden) |
| 8 | ++ foo 1.0.0 |
| 9 | +Changed 1 dependency! |
| 10 | +Publishing myapp 0.0.0 to http://localhost:$PORT: |
| 11 | +├── bin |
| 12 | +│ └── main.dart (<1 KB) |
| 13 | +└── pubspec.yaml (<1 KB) |
| 14 | + |
| 15 | +Total compressed archive size: <1 KB. |
| 16 | +Validating package... |
| 17 | +Package validation found the following 4 errors: |
| 18 | +* You must have a LICENSE file in the root directory. |
| 19 | + An open-source license helps ensure people can legally use your code. |
| 20 | + |
| 21 | +* Your pubspec.yaml is missing a "description" field. |
| 22 | + |
| 23 | +* Your pubspec.yaml is missing a "version" field. |
| 24 | + |
| 25 | +* line 1, column 1 of bin/main.dart: foo is in the `dev_dependencies` section of `pubspec.yaml`. Packages used in bin/ must be declared in the `dependencies` section. |
| 26 | + ╷ |
| 27 | + 1 │ import 'package:foo/foo.dart'; |
| 28 | + │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 29 | + ╵ |
| 30 | + |
| 31 | +Package validation found the following 5 potential issues: |
| 32 | +* `dart analyze` found the following issue(s): |
| 33 | + Analyzing bin, pubspec.yaml... |
| 34 | + |
| 35 | + warning - bin/main.dart:1:8 - Unused import: 'package:foo/foo.dart'. Try removing the import directive. - unused_import |
| 36 | + |
| 37 | + 1 issue found. |
| 38 | + |
| 39 | + |
| 40 | +* It's strongly recommended to include a "homepage" or "repository" field in your pubspec.yaml |
| 41 | + |
| 42 | +* Your dependency on "bar" should have a version constraint. For example: |
| 43 | + |
| 44 | + dependencies: |
| 45 | + bar: ^1.0.0 |
| 46 | + |
| 47 | + Without a constraint, you're promising to support all future versions of "bar". |
| 48 | + |
| 49 | +* Please add a README.md file that describes your package. |
| 50 | + |
| 51 | +* Please add a `CHANGELOG.md` to your package. See https://dart.dev/tools/pub/publishing#important-files. |
| 52 | + |
| 53 | +Package validation found the following hint: |
| 54 | +* Non-dev dependencies are overridden in pubspec.yaml. |
| 55 | + |
| 56 | + This indicates you are not testing your package against the same versions of its |
| 57 | + dependencies that users will have when they use it. |
| 58 | + |
| 59 | + This might be necessary for packages with cyclic dependencies. |
| 60 | + |
| 61 | + Please be extra careful when publishing. |
| 62 | +[STDERR] Sorry, your package is missing some requirements and can't be published yet. |
| 63 | +[STDERR] For more information, see: https://dart.dev/tools/pub/cmd/pub-lish. |
| 64 | +[EXIT CODE] 65 |
| 65 | + |
0 commit comments