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

How to make meta to run only on child repositories and not on the root meta repo itself? #285

Closed
khelkun opened this issue Oct 28, 2021 · 4 comments
Labels

Comments

@khelkun
Copy link

khelkun commented Oct 28, 2021

🤓 Question

meta runs in all child repositories but also first run on the root repository e.g the meta repository itself.

I can imagine why this is the default aim of meta but I wish I could avoid this and just make meta to run in all the child repositories declared in the .meta but not on the meta repository itself.
Is there a way to do that please?

@khelkun khelkun changed the title Why meta also runs on the root directory e.g the meta repo itself? How to make meta to run only on child repositories and not on the root meta repo itself? Oct 28, 2021
@patrickleet
Copy link
Collaborator

assuming your meta repo is named "meta"

meta exec "pwd" --exclude "meta"

@patrickleet
Copy link
Collaborator

patrickleet commented Oct 28, 2021

or from the root of the meta repo, find the name of it programatically

meta exec "pwd" --exclude $(basename `pwd`)

@khelkun
Copy link
Author

khelkun commented Oct 29, 2021

thanks @patrickleet, this works all my meta commands.

I don't see this --exclude option in the README, and actually I don't see where it's implemented.

Is there others meta command options not documented in the README? Where those options are implemented?

For example I wonder if meta has an option like --projects-file=.meta-myprojects.

@mateodelnorte
Copy link
Owner

mateodelnorte commented Oct 29, 2021 via email

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

No branches or pull requests

3 participants