Sfdx-git-delta: QUESTION: Multiple Package Directories

Created on 15 Jul 2021  路  6Comments  路  Source: scolladon/sfdx-git-delta

Does this tool works with Multiple Package Directories? Not 2GP, just having metadata separated into multiple directories and specified them in sfdx-project.json.

Thank you in advance!

question

Most helpful comment

Hi @mobilizer !

It is totally supported by the plug-in using the --ignore (-i) and --ignore-destructive (-D)

You can supply a specific ignore file for delta generation that you maintain. The file name is at your hand, you can name it .sgdignore per exemple

Give it a try and let us know !

All 6 comments

Hello @Dhanielk

Yes it works with those kind of configuration too !
Give it a try and let us know :)

I would like to extened the question - also I expect the answer: "Currently Not.":

Does this tool work with multiple package directories, even when some directories are Unlocked Packages, and are installed on production org as Unlocked Package?

The result of a sfdx sgd:source:delta --from master -d run includes changes from the Unlocked Packages:
image

@scolladon Is a functionality to filter changes in Packages in the potential scope of this plug-in?

We would be happy to work on a functionality to support hybrid deployment processes (with Unlocked Packages AND Happy Soup).

Thanks for your thoughts. Maybe you can also propose a direction. Thanks!

Hi @mobilizer !

It is totally supported by the plug-in using the --ignore (-i) and --ignore-destructive (-D)

You can supply a specific ignore file for delta generation that you maintain. The file name is at your hand, you can name it .sgdignore per exemple

Give it a try and let us know !

Thanks @scolladon. sfdx sgd:source:delta --from master -d --ignore=.sgdignore looks good for our use case with the following .sgdignore :-)

/*
/*/
!/src/

Hi @mobilizer ,

I too had a similar requirement I had modified the tool in such a way if we pass additional parameters in SGD command It will generate a package only for the particular folder which is provided in command. Currently I am working on the tool so that we I can push changes back to original Repo.

Hi @mobilizer, I have submitted the pull request to this branch for the same requirement, If you are having urgent requirement you can clone the https://github.com/sudhanshu-gupta-0704/sfdx-git-delta.git repository and install the package locally using npm.

To Use the tool add an extra parameter -s or --source and pass the folder path

I am using this tool in my azure pipeline also.

Note:-
This modification is done by me on top of the open source code available on this tool. The original Developers will not be held responsible for anything.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexmodis picture alexmodis  路  4Comments

struthe picture struthe  路  3Comments

ashishshukla38 picture ashishshukla38  路  4Comments

robertoamd90 picture robertoamd90  路  4Comments

alexandrececchin picture alexandrececchin  路  9Comments