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

Pub doesn't create packages/ symlink in tools/ #23657

Closed
filiph opened this issue Jun 17, 2015 · 2 comments
Closed

Pub doesn't create packages/ symlink in tools/ #23657

filiph opened this issue Jun 17, 2015 · 2 comments

Comments

@filiph
Copy link
Contributor

filiph commented Jun 17, 2015

The tools directory of a package should include a symlink to packages/ (it's an entrypoint directory).

Entrypoint directory

A directory inside your package that is allowed to contain Dart entrypoints. Pub will ensure all of these directories get a “packages” directory, which is needed for “package:” imports to work.

Pub has a whitelist of these directories: benchmark, bin, example, test, tool, and web. Any subdirectories of those (except bin) may also contain entrypoints.

My package lacks this symlink in tools/ and whatever I call (pub get, pub upgrade, ...), nothing changes that.

This is either a documentation issue (is there a way to force pub to check symlinks and create if necessary? is tools/ deprecated?) or a bug.

Pub version: 1.10.1
OS: Mac OS X 10.10.3 (14D136)

@a14n
Copy link
Contributor

a14n commented Jun 17, 2015

tool/ instead of tools/ should work.

@filiph
Copy link
Contributor Author

filiph commented Jun 17, 2015

Gah! Yes. Yes, it does. Sorry.

@filiph filiph closed this as completed Jun 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants