name: application
dependencies:
google_blossom_0_0_0_api:
path: ../dart_blossom_0_0_0_api_clientpackages:
google_blossom_0_0_0_api:
description:
path: "/Users/nikolausgraf/projects/blossom/dart/application/../dart_blossom_0_0_0_api_client"
relative: true
source: path
version: "0.1.0"Path dependencies are useful for local development, but do not play nice with sharing code with the outside world. It’s not like everyone can get to your file system, after all. Because of this, you cannot upload a package to pub.dartlang.org if it has any path dependencies in its pubspec.
When I specify a required package via a relative path in pubspec.yaml an absolute path is generated in the lockfile. This requires the exact same location of the project for everyone who is working on the application.
That said however, with proper version constraints in pubspec now, I'm not entirely sure it is still required to include your pubspec.lock file for application development.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
Nik and I chatted about this today. If I may, I'd like to share what we talked about to provide context and (hopefully) clarity. :)Nik has multiple Web UI apps in a single repo. They all share a library. What's the best way to do this?Nik had a directory layout like this:repo
� - shared� - app1� � - web� � - lib� � - build.dart� - app2� � - web� � - lib� � - build.dart� - etc
I suggested to re-org his directory into this:repo
� - lib� � - shared_lib� - web� � - app1� � �- index.html� � - app2� � �- index.html� - build.dart
Inside build.dart, Nik can compile both app1/index.html and app2/index.html. Each will be dumped into their own appX/out directory, so he'll still get clean self-contained apps. And, every directory inside of web/ can see lib/ via package: imports.I *think* this captured it. @Nik can correct me. :)
�
�
�
�
Inside build.dart, Nik can compile both app1/index.html and app2/index.html. Each will be dumped into their own appX/out directory, so he'll still get clean self-contained apps. And, every directory inside of web/ can see lib/ via package: imports.