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

There is no way to disable recursion/traversal #6198

Closed
vicuna opened this issue Oct 1, 2013 · 2 comments
Closed

There is no way to disable recursion/traversal #6198

vicuna opened this issue Oct 1, 2013 · 2 comments
Assignees

Comments

@vicuna
Copy link

vicuna commented Oct 1, 2013

Original bug ID: 6198
Reporter: edmcman
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:24:15Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 3.12.1
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues

Bug description

Ocamlbuild currently sets the traversal tag on any file when _tags or myocamlbuild.ml is present in a directory. As far as I can see, there is no way to unset the traversal flag once it has been set.

I want to do this because I am trying to include project B as a sub-project in project A. A uses ocamlbuild. B does not. However, B contains C as a sub-project, which does use ocamlbuild. B arranges for ocamlbuild to be called in C, though, so I do not want A to read any of the _tags files in C.

Steps to reproduce

n/a

Additional information

n/a

@vicuna
Copy link
Author

vicuna commented Oct 1, 2013

Comment author: @gasche

To disable traversal of all subdirectories, just add

true: -traverse

in your _tags file.

You can then enable traversal for a specific directory foo/ with

"foo": traverse

You can also disable subtraversal on a per-subdirectory basis with

"foo": -tarverse

But for scalability reason I find it better to disable traversal globally, then enable it locally.

@vicuna
Copy link
Author

vicuna commented Oct 1, 2013

Comment author: edmcman

Thanks for the speedy response. I tried "no_traverse" for some reason instead of -traverse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants