scolladon / sfdx-git-delta

Generate the sfdx content in source format from two git commits
Other
414 stars 112 forks source link

Where are the plugin files saved? #742

Closed jonny-harte closed 8 months ago

jonny-harte commented 8 months ago

Where are the plugin files saved? I'm trying to Cache the CLI and plugin in a Github Action and have managed to cache the CLI but it's saying it can't find the plugin?

      - name: Checkout Repository
        uses: actions/checkout@v3

      - name: Setup Node
        uses: actions/setup-node@v3
        with:
          node-version: ">=20"

      - name: Install Salesforce CLI & SFDX Git Delta
        run: |
          npm install @salesforce/cli --global
          echo y | sf plugins install sfdx-git-delta

      - name: Save Cache
        uses: actions/cache/save@v3
        with:
          path: |
            ~/.npm
            /opt/hostedtoolcache/node/20.10.0/x64/bin
            /opt/hostedtoolcache/node/20.10.0/x64/lib/node_modules/@salesforce/cli
          key: SFDX-Git-Delta
scolladon commented 8 months ago

Hi @jonny-harte !

Thanks for raising this issue and thanks for contributing in making this project better!

I actually have no idea where it is located. I'll try to find where it is located and if it depends on the os

Stay tuned

jonny-harte commented 8 months ago

hey! I found the paths

/home/runner/.local/share/sf
$(npm config get prefix)/bin
$(npm config get prefix)/lib/node_modules/@salesforce/cli
scolladon commented 8 months ago

Hi @jonny-harte

How it improves the installation time ? What is the final version of your github action ? How did you create a cache key that invalidates the cache when a new release of the cli or sgd is shipped ? One more question, could you create a show and tell discussion ? I think it could help many people.

jonny-harte commented 8 months ago

done! discussion started here