Layer7 API Management

 View Only
  • 1.  Diff command issue

    Posted Jan 27, 2025 11:35 AM

    I am getting this error when i use diff command to compare source & target files. what ext do i need to include ?

    multiline-text-diff graphman extension is not enabled, falling back to the default



  • 2.  RE: Diff command issue

    Broadcom Employee
    Posted Jan 28, 2025 12:51 AM

    @Rajesh Natarajan

    graphman client (diff) provides multi-line text differences as an extension. To see this functionality working, 

    • install the corresponding third-party npm module
    • and enabled it using --options.extensions 

    Please check the below wiki page for more details.

    https://github.com/Layer7-Community/graphman-client/wiki/Extensions




  • 3.  RE: Diff command issue

    Posted Jan 28, 2025 04:39 AM

    Hi Rajesh.

    Potentially some additional info:

    In my understanding, the message you get is just a hint, that the extension is not available. It's not an error.

    The multiline-text-diff extension provides policy/service "code" diff results.

    This capability is related to the approach to treat "policy as code", where it might be in interest, to not only get aware that policies are different (the default behavior), but to get information about where exactly they differ, which assertions are different.

    Hope that helps a bit as well.




  • 4.  RE: Diff command issue

    Posted Jan 28, 2025 05:48 PM

    Thanks for the quick response Michael & Raju. yes I want get deep dive in to the difference at assertion level. I tried the option which is there in GIT. I am getting module not found exception. Not sure how to get that module 




  • 5.  RE: Diff command issue

    Broadcom Employee
    Posted Jan 29, 2025 04:07 AM

    Sorry for the late reply. 

    Did you forget to install the required npm module? if yes, please install the module using the below command




  • 6.  RE: Diff command issue

    Posted Jan 29, 2025 11:10 AM

    I did that install. still that module is not loading & I am unable to see Assertion level diff




  • 7.  RE: Diff command issue

    Broadcom Employee
    Posted Jan 29, 2025 11:52 AM

    Did you install the module at global level?

    you may double check that using below command

    npm list --global

    It will list the installed npm packages at global level

    +-- @layer7/graphman@1.3.11
    `-- diff@5.2.0




  • 8.  RE: Diff command issue

    Posted Jan 29, 2025 11:56 AM

    Yes I see that bundle in list




  • 9.  RE: Diff command issue

    Broadcom Employee
    Posted Jan 29, 2025 12:28 PM

    Not sure what's wrong in that case. We need to understand more about your environment like windows/node/npm versions.

    Maybe, we can meet via google/zoom meet tomorrow.




  • 10.  RE: Diff command issue

    Posted Jan 29, 2025 01:10 PM
    Edited by Rajesh Natarajan Jan 29, 2025 01:11 PM

    Sure we can meet. I raised a support ticket (36103315) if you want to track .


    Rajesh Natarajan