Skip to content
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

Add an option to run pub in a directory other than the working directory #15735

Closed
sethladd opened this issue Dec 19, 2013 · 4 comments
Closed
Labels
P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link
Contributor

I'm working on integrating our build process with a third party. It would help tremendously if we could do something like pub build path/to/package. Reason: we're configuring what to run to build the app, via a web form. There's no concept of a current working directory, just a single line for a command to run.

Workaround I'm trying: cd /var/www && pub build

However, that's not working for their system.

Meanwhile, I'll try to work out if we can run multiple commands for them. But it would be helpful if I could provide the path to the package.

Thanks for listening!

@nex3
Copy link
Member

nex3 commented Dec 19, 2013

If we do this, we should have a global option (e.g. --package-dir) rather than handling it specially for each command.


Removed Pub-Build label.
Changed the title to: "Add an option to run pub in a directory other than the working directory".

@munificent
Copy link
Member

Removed Priority-Unassigned label.
Added Priority-Low label.

@blois
Copy link
Contributor

blois commented Jul 7, 2014

I'm also running into this when integrating it into hooks in Chromium's depot_tools. Current solution is to wrap pub with a python script which changes the cwd. It works, but seems unnecessary.

Polymer.dart's readPackageDirsFromPub also has to do the CWD hack as well-
https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/pkg/polymer/lib/src/build/runner.dart#­89

@sethladd sethladd added Type-Enhancement P3 A lower priority bug or feature request labels Jul 7, 2014
@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#794.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants