-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to ignore the workspace when running pub commands #4357
Comments
I can see the need for this. However if we do this as a flag to We could make a command like @jonasfj any ideas? |
Talking with @jonasfj here are some options for consuming the package inside the docker image:
Also if we really wanted to provide something like this, it should probably be as an environment variable, as that could stick between commands. |
@kevmoo do any of the above solutions work for you? |
I'd LOVE to have an environment variable that's just PUB_IGNORE_WORKSPACE |
Copy the entire workspace into the container. Ideally, build an AOT snapshot and insert it into a docker image that only has the AOT-runtime (using docker multistage builds). That said, I see how this is annoying, because How about using Do note that you actually run into one more problem. You are not copying over Inside a Or we'll need to:
|
@sigurdm – it'd be nice to just have a CLI option. But just adding a file and removing it is much more scriptable than trying to use |
Ok - I'll close this issue for now then. |
Scenario: you have a package that you want to use in docker.
You copy the package contents into docker and expect
dart pub ...
to work, but it fails because you haven't copied the entire repo.I've had to create a hack script to delete the
workspace
property out of a pubspec to make things work. Not ideal.The text was updated successfully, but these errors were encountered: