tree: 1d8d0cc26c018e9513eac619084cddb12d484415 [path history] [tgz]
  1. _sh.hash
  2. _wsk.hash
  3. builtin_extra.go
  4. i18n_resources.go
  5. opsfile.yml
  6. patch-sh.sh
  7. patch-task.sh
  8. patch-wsk.sh
  9. patch-wskdeploy.sh
  10. README.md
  11. runtimes.go
  12. runtimes_extra.go
  13. update-gomod.sh
_patches/README.md

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

  2. 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