Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Running pub get before adding project dir in dart-runtime prevents path dependencies #15

Closed
stevenroose opened this issue Dec 16, 2015 · 1 comment

Comments

@stevenroose
Copy link

Consider you ship your app with a private library as a dependency. You don't want to publish that to pub.

What I do is add a git submodule to ./modules/private-library and add a dependency:

dependencies:
  priv_lib:
    path: modules/private-library

However the dar t-runtime Docker first only adds the pubspec file and then runs pub get before adding the rest of the project directory. This prevents the pub get from finding the private library.

Why is it done in this order?

@sgjesse
Copy link
Contributor

sgjesse commented Dec 16, 2015

The dart-runtime base image is intended for the simple case where you just pull packages from pub. In your situation with local packages as well you can use the dart-runtime-base base image. It requires a bit more configuration in terms of the Dockerfile to provide, but gives the flexibility to use local packages. Take a look at the documentation, to see if that fits your needs.

@athomas athomas closed this as completed Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants