blob: 465772d5d7d44d5757e2fd009d483ee6a4464962 [file] [view]
# Patches to the tools
- changes to mvdan/sh:
- rename to sciabarracom/sh
- use coreutils as builtins
- use ops tools as builtin
- changes to taskfile:
- rename to sciabarracom/task
- default taskfile is opsfile.yml
- use the patched mvdan shell
- changes to openwhisk-wskdeploy:
- rename to sciabarracom/openwhisk-wskdeploy
- use a different path for retrieving the configuration (api/info instead of the root of the APIHOST)
- wire a different default runtimesjson
- changes to openwhisk-wsk
- rename to sciabarracom/openwhisk-wskdeploy
- generate and add to the sources the translation resources to build as a library
- use the patched openwhisk-wskdeploy
# Procedure
This is the procedure we followed to build the patched versions of:
1. fork mvdan.cc/sh in github.com/sciabarracom/sh
fork github.com/go-task/task in github.com/sciabarracom/task
fork github.com/apache/openwhisk-cli in github.com/sciabarracom/openwhisk-cli
fork github.com/apache/openwhisk-wskdeploy in github.com/sciabarracom/openwhisk-wskdeploy
3. git submodule update --init,
then add remote orig-auth with an url with an authentication token so you can push it back
then add remote upstream to the original repos to fetch tags
then git fetch --all
3. execute the patch scripts in order (if you change them remember to increase version numbers)
bash patch-sh.sh
bash patch-task.sh
bash patch-wskdeploy.sh
bash patch-wsk.sh
4. regenerate the go.mod/go.sum in top level (using the latest versions if you changed them!)
cd ..
rm go.mod go.sum
go mod init github.com/apache/openserverless-cli
go get github.com/sciabarracom/openwhisk-cli@v1.2.1
go get github.com/sciabarracom/task/v3/cmd/taskmain@v3.38.10
go mod tidy
go build