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

[FEAT] run-many --tags=tag1,tag2 #2675

Closed
snebjorn opened this issue Mar 16, 2020 · 15 comments · Fixed by #10085
Closed

[FEAT] run-many --tags=tag1,tag2 #2675

snebjorn opened this issue Mar 16, 2020 · 15 comments · Fixed by #10085
Labels

Comments

@snebjorn
Copy link

snebjorn commented Mar 16, 2020

Would be nice if we could use tags with the nx run-many command.

Example

> nx run-many --target=build --tags=core,demo-app
@FrozenPandaz FrozenPandaz added scope: core core nx functionality type: feature labels Mar 20, 2020
@github-actions
Copy link

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of the Nrwl community! 🙏

@github-actions github-actions bot added the stale label May 29, 2020
@snebjorn
Copy link
Author

snebjorn commented May 29, 2020

Not sure what to do here. Should I keep this alive until it's implemented or rejected?

@vsavkin vsavkin removed the stale label May 29, 2020
@vsavkin
Copy link
Member

vsavkin commented May 29, 2020

Sorry. The issue was marked by mistake. I removed the label.

@ericwooley
Copy link

ericwooley commented Sep 5, 2020

To add on to this, another related feature that would be really nice is the ability to check if something is affected by tag.

EG

# print affected by tag, one line per service
SERVICES_TO_DEPLOY=$(nx print-affected --tags=services --target=build --select=tasks.target.project | awk 'gsub(/, /, "\n")')


# if there are more than one line output by 
if [[ $(echo $SERVICES_TO_DEPLOY | wc -l) -gt 0 ]] echo "run deploy command for services"

@matukosan
Copy link

Yes, Yes, Yes, we need this!! We need to group multiple apps/libs to larger applications and it would be soo nice to be able to run them with a single tag!

Schibum added a commit to Schibum/nx that referenced this issue Jan 18, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
Schibum added a commit to Schibum/nx that referenced this issue Jan 18, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
Schibum added a commit to Schibum/nx that referenced this issue Jan 18, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
Schibum added a commit to Schibum/nx that referenced this issue Jan 18, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
Schibum added a commit to Schibum/nx that referenced this issue Jan 18, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
Schibum added a commit to Schibum/nx that referenced this issue Jan 18, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
Schibum added a commit to Schibum/nx that referenced this issue Jan 18, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
Schibum added a commit to Schibum/nx that referenced this issue Mar 16, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
@github-actions
Copy link

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

@github-actions github-actions bot added the stale label Mar 29, 2021
@ericwooley
Copy link

Please keep it open stale bot

@github-actions github-actions bot removed the stale label Mar 29, 2021
Schibum added a commit to Schibum/nx that referenced this issue Apr 6, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
Schibum added a commit to Schibum/nx that referenced this issue Apr 8, 2021
`nx run-many --target=deploy --tags=foo` runs the given target for all
projects that have a tag `foo` configured in nx.json.

Closes nrwl#2675.
@hassankhan
Copy link
Contributor

Hi all, just dropping in to share my 0.02c, its seems like the tags aren't useful for much right now, adding support for them to the run-many command would drastically improve my workflow.

@ndrsg
Copy link
Contributor

ndrsg commented Dec 10, 2021

this feature would be absolutely great!!

@rabraghib
Copy link

+1

yharaskrik added a commit to yharaskrik/nx that referenced this issue Jan 18, 2022
yharaskrik added a commit to yharaskrik/nx that referenced this issue Jan 18, 2022
@marcus-sa
Copy link

Still wondering why this haven't been implemented yet 😅

@bintoll
Copy link

bintoll commented Apr 20, 2022

Agree, it will be quite useful for me also! Right now I have to list all projects as excluded in different tasks manually, grouping projects by tag will simplify this process a lot and make it much more scalable.

@MitkoTschimev
Copy link
Contributor

We just came across the same requirement. We tag based on business domains on a higher level. In the pipeline related to the business domain I just want to lint all those projects and this would be very helpful

@sylvainar
Copy link

That would be great indeed, nice to see there is a PR open for that!

@github-actions
Copy link

github-actions bot commented May 7, 2023

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.