blob: 237b3b579bd9b218566ed09ac20aa257272efaf9 [file] [log] [blame]
# GENERATED BY: test/directory_option_test.dart
## Section 0
$ pub add --directory=myapp foo
Resolving dependencies in myapp...
+ foo 1.0.0
Changed 1 dependency in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 1
$ pub -C myapp add bar
Resolving dependencies in myapp...
+ bar 1.2.3
Changed 1 dependency in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 2
$ pub -C myapp/example get --directory=myapp bar
Resolving dependencies in myapp...
Got dependencies in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 3
$ pub remove bar -C myapp
Resolving dependencies in myapp...
These packages are no longer being depended on:
- bar 1.2.3
Changed 1 dependency in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 4
$ pub get bar -C myapp
Resolving dependencies in myapp...
Got dependencies in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 5
$ pub get bar -C myapp/example
Resolving dependencies in myapp/example...
+ foo 1.0.0
+ test_pkg 1.0.0 from path myapp
Changed 2 dependencies in myapp/example!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 6
$ pub get bar -C myapp/example2
Resolving dependencies in myapp/example2...
[STDERR] Error on line 1, column 9 of myapp/pubspec.yaml: "name" field doesn't match expected name "myapp".
[STDERR] ╷
[STDERR] 1 │ {"name":"test_pkg","version":"1.0.0","homepage":"http://pub.dartlang.org","description":"A package, I guess.","environment":{"sdk":">=1.8.0 <=2.0.0"}, dependencies: { foo: ^1.0.0}}
[STDERR] │ ^^^^^^^^^^
[STDERR] ╵
[EXIT CODE] 65
-------------------------------- END OF OUTPUT ---------------------------------
## Section 7
$ pub get bar -C myapp/broken_dir
[STDERR] Could not find a file named "pubspec.yaml" in "$SANDBOX/myapp/broken_dir".
[EXIT CODE] 66
-------------------------------- END OF OUTPUT ---------------------------------
## Section 8
$ pub downgrade -C myapp
Resolving dependencies in myapp...
foo 1.0.0
No dependencies changed in myapp.
-------------------------------- END OF OUTPUT ---------------------------------
## Section 9
$ pub upgrade bar -C myapp
Resolving dependencies in myapp...
foo 1.0.0
No dependencies changed in myapp.
-------------------------------- END OF OUTPUT ---------------------------------
## Section 10
$ pub run -C myapp bin/app.dart
Building package executable...
Built test_pkg:app.
Hi
-------------------------------- END OF OUTPUT ---------------------------------
## Section 11
$ pub publish -C myapp --dry-run
Publishing test_pkg 1.0.0 to http://localhost:$PORT:
|-- CHANGELOG.md
|-- LICENSE
|-- README.md
|-- bin
| '-- app.dart
|-- example
| '-- pubspec.yaml
|-- example2
| '-- pubspec.yaml
|-- lib
| '-- test_pkg.dart
'-- pubspec.yaml
The server may enforce additional checks.
[STDERR]
[STDERR] Package has 0 warnings.
-------------------------------- END OF OUTPUT ---------------------------------
## Section 12
$ pub uploader -C myapp add sigurdm@google.com
Good job!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 13
$ pub deps -C myapp
Dart SDK 1.12.0
test_pkg 1.0.0
'-- foo 1.0.0