Skip to content

Barocena/wally-patch-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wally-patch-package

wally-patch-package is a cli tool for patching wally packages

Installation

Requirements

  • git

you can install it via aftman

wally-patch-package="Barocena/wally-patch-package@1.2.1"

or

from GitHub Releases Page.

Usage

Demo.mp4

Creating Patches

First make changes to the files of a package you want to patch, then run

wally-patch-package <packagename>

packagename accepts detailed info of package so scope/packagename@version is also valid
for cases like same packages with different versions or 2 package with same name different scope etc..)

it will create *.patch file in the WallyPatches directory

For Private Registries

(this step is not neccessary for public registries)

since the patch tool needs to download original version of package, it needs to know base url for endpoint.
you can provide the base url with --registry=<base-url> flag (base url can be found in config.json file in the index)

Applying Patches

To apply all patches, run
wally-patch-package

to apply specific patch only, run wally-patch-package --patch=<packagename>