You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, patches are specified separately from sources, e.g.
sources:
src0:
# source defpatch0:
# source defpatches:
src0: # Name of the source to patch
- source: patch0 # Name of the patch sourcepath: path/to/patch # Path inside patch source
I propose we allow adding patches as a nested object on the source, like so:
sources:
src0:
# source defpatches:
- context: {} # Can be any source typepath: path/to/patch
Are you willing to submit PRs to contribute to this feature request?
Yes, I am willing to implement it.
The text was updated successfully, but these errors were encountered:
I haven't looked into this yet, but is the following a valid approach?
To support this new syntax while maintaining backwards compatibility, during validation and parsing/filling defaults in the spec, we could convert this new syntax into the current sources block for each of these patches. Additionally, we need to add the required patches block with the corresponding sources. So, given this:
sources:
src0:
# source defpatches:
- context: {} # Can be any source typepath: path/to/patch
Behind the scenes, Dalec will convert it to this:
sources:
src0:
# source defpatch0:
path: path/to/patchcontext: {}patches:
src0: # Name of the source to patch
- source: patch0 # Name of the patch sourcepath: path/to/patch # Path inside patch source
What kind of request is this?
None
What is your request or suggestion?
Today, patches are specified separately from sources, e.g.
I propose we allow adding patches as a nested object on the source, like so:
Are you willing to submit PRs to contribute to this feature request?
The text was updated successfully, but these errors were encountered: