This is an automated email from the ASF dual-hosted git repository.

sciabarracom pushed a commit to branch 0.9.0
in repository https://gitbox.apache.org/repos/asf/openserverless.git


The following commit(s) were added to refs/heads/0.9.0 by this push:
     new 589c13b  fixes for source build
589c13b is described below

commit 589c13b358555e8e8c4781c990ddb4d5037997f5
Author: Trustable User <[email protected]>
AuthorDate: Sun Jul 19 09:16:52 2026 +0200

    fixes for source build
---
 .licenserc.yaml |  1 +
 Taskfile.yml    | 52 +++++++++++++++++++++++++++++++++++-----------------
 cli             |  2 +-
 3 files changed, 37 insertions(+), 18 deletions(-)

diff --git a/.licenserc.yaml b/.licenserc.yaml
index 8d39647..bcac326 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -38,3 +38,4 @@ header:
     - 'DISCLAIMER'
     - 'NOTICE'
     - 'CHANGES'
+    - 'RELEASE'
diff --git a/Taskfile.yml b/Taskfile.yml
index 1351ae4..fcb221e 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -21,7 +21,12 @@ vars:
   OPERATOR_IMG:
     sh: awk -F= '/ARG OPERATOR_IMAGE_DEFAULT=/ { print $2 ; exit }' 
olaris-op/Dockerfile
   OPERATOR_TAG:
-    sh: git  -C olaris-op rev-parse --short HEAD
+    sh: |
+        if test -e RELEASE
+        then cat RELEASE
+        else git  -C olaris-op rev-parse --short HEAD
+        fi
+
   OPERATOR_SRC: "{{.OPERATOR_IMG}}:{{.OPERATOR_TAG}}"
 
   STREAMER_TAG: "{{.OPERATOR_TAG}}"
@@ -42,17 +47,6 @@ vars:
 
 tasks:
 
-    release:
-      desc: release
-      dir: ..
-      requires:
-        vars: [ V ]
-      cmds:
-      - |
-        tar --exclude='.git' -czvf openserverless-v{{.V}}.tar.gz openserverless
-        git tag "v{{.V}}"
-        echo please push the tag
-
     default: task -l
 
     clean:
@@ -178,11 +172,11 @@ tasks:
       - test -e opsroot.orig || jq . <opsroot.json >opsroot.orig
       - >
         jq <opsroot.orig >opsroot.json  '
-          .config.images.operator = "{{.OPERATOR_SRC}}"   |
-          .config.images.streamer = "{{.STREAMER_SRC}}"   |
-          .config.images.systemapi = "{{.ADMIN_API_SRC}}" |
+          .config.images.operator   = "{{.OPERATOR_SRC}}"   |
+          .config.images.streamer   = "{{.STREAMER_SRC}}"   |
+          .config.images.systemapi  = "{{.ADMIN_API_SRC}}"  |
           .config.images.controller = "{{.CONTROLLER_SRC}}" |
-          .config.images.invoker = "{{.INVOKER_SRC}}"
+          .config.images.invoker    = "{{.INVOKER_SRC}}"
         '
       - diff opsroot.orig opsroot.json || true
 
@@ -204,9 +198,24 @@ tasks:
         fi
 
 
+    gitinit:
+      desc: initialize git if missing
+      cmds:
+      - |
+        for i in build cli olaris-op runtimes streamer admin-api
+        do
+          cd "$i"
+          if ! test -e .git
+          then git init 2>/dev/null
+              git commit -m "init" --allow-empty
+          fi
+          cd ..
+        done
+
     build:
       desc: build all
       cmds:
+      - task: gitinit
       - task: opslink
       - task: openwhisk
       - task: operator
@@ -237,9 +246,18 @@ tasks:
         license-eye header {{.CMD}}
         for i in */.licenserc.yaml
         do
-            DIR=$(dirname $i)
+            DIR="$(dirname $i)"
             echo "*** Checking license headers in $DIR"
             cd $DIR
             license-eye header {{.CMD}}
             cd {{.TASKFILE_DIR}}
         done
+
+    release:
+      desc: release
+      requires:
+        vars: [ V ]
+      cmds:
+      - echo "v{{.V}}" >RELEASE
+      - tar -C .. --exclude='.git' -czvf openserverless-v{{.V}}.tar.gz 
openserverless
+      - git tag "v{{.V}}" && git push --tags
diff --git a/cli b/cli
index 7400c95..bacedca 160000
--- a/cli
+++ b/cli
@@ -1 +1 @@
-Subproject commit 7400c9507902c3f7025e8902401eab366d576e95
+Subproject commit bacedcaf3523032f1a6b8d2160b4e774be7d311d

Reply via email to