Coder Social home page Coder Social logo

Comments (5)

sovcharenko avatar sovcharenko commented on August 18, 2024

affected seem to be broken:

yarn --silent nx show projects --json --affected --withTarget=lint --base=0626ea8669414acab7b1e7be191066e0b7251881 --head 3acbd6024c094dccb7eb8a69bbe67f181022735b

reports everything while there is not a single change between base and head

from nx.

FrozenPandaz avatar FrozenPandaz commented on August 18, 2024

nx graph --affected --file=graph.json has deprecated long ago in version 16.1.0 and was warning since then. This information can now be retrieved by appending --graph to your nx affected command.

https://nx.dev/deprecated/affected-graph

affected seem to be broken:

yarn --silent nx show projects --json --affected --withTarget=lint --base=0626ea8669414acab7b1e7be191066e0b7251881 --head 3acbd6024c094dccb7eb8a69bbe67f181022735b
reports everything while there is not a single change between base and head

This seems like a different issue, please open a new issue. Also, please check if there really are no changes between those diffs. The command you can use is:

git diff --name-only --no-renames --relative "${base}" "${head}"

from nx.

Suldenkov avatar Suldenkov commented on August 18, 2024

@AgentEnder Hi! Can you tell me exactly how to use it nx affected with --graph? When I use nx affected, I need to select --target but I don't need it. I just want to build a graph of affected projects.

from nx.

Suldenkov avatar Suldenkov commented on August 18, 2024

I just saw in the documentation a recommendation to use nx graph --affected instead of affected:graph but you said she was deprecated. Can you tell me if this is an error in the documentation or if I misunderstood something?

Message in documentation: Deprecated: Use nx graph --affected, or nx affected --graph instead depending on which best suits your use case. The affected:graph command was removed in Nx 19.

from nx.

github-actions avatar github-actions commented on August 18, 2024

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.

from nx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.