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

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


The following commit(s) were added to refs/heads/0.1.0 by this push:
     new 2de532b  updated prereq
2de532b is described below

commit 2de532bd1ad25766326faede6d00c364dafcc2f5
Author: Michele Sciabarra <[email protected]>
AuthorDate: Tue Sep 1 14:52:03 2026 +0200

    updated prereq
---
 prereq.yml | 78 ++++++++++++--------------------------------------------------
 1 file changed, 15 insertions(+), 63 deletions(-)

diff --git a/prereq.yml b/prereq.yml
index bd866ca..8978a5b 100644
--- a/prereq.yml
+++ b/prereq.yml
@@ -102,14 +102,15 @@ tasks:
   bun:
     desc: download bun
     vars:
-      VERSION: "1.2.5"
+      VERSION: "1.3.14"
       ARCH2: '{{if eq .ARCH "amd64"}}x64{{else}}aarch64{{end}}'
       URL: 
'https://github.com/oven-sh/bun/releases/download/bun-v{{.VERSION}}/bun-{{.OS}}-{{.ARCH2}}.zip'
       FILE: '{{base .URL}}'
     cmds:
     - echo "{{.URL}}"
-    - curl -sL "{{.URL}}" -o "{{.FILE}}"
+    - curl -fsSL "{{.URL}}" -o "{{.FILE}}"
     - extract "{{.FILE}}" bun{{.EXE}}
+    - executable bun{{.EXE}}
     - remove "{{.FILE}}"
 
   kubectl:
@@ -210,30 +211,6 @@ tasks:
     - curl -sL "{{.URL}}" -o "{{.OUT}}"
     - executable "{{.OUT}}"
 
-  #hugo:
-  #  desc: download hugo
-  #  vars:
-  #    VERSION: 0.145.0
-  #    SUFFIX:
-  #       sh: |
-  #           case "{{.OS}}-{{.ARCH}}" in
-  #            linux-amd64) echo Linux-64bit.tar.gz ;;
-  #            linux-arm64) echo "linux-arm64.tar.gz" ;;
-  #            darwin-arm64) echo darwin-universal.tar.gz ;;
-  #            darwin-amd64) echo darwin-universal.tar.gz ;;
-  #            windows-*) echo windows-amd64.zip ;;
-  #            *) echo "unknown" ;;
-  #           esac
-  #    URL: 
"https://github.com/gohugoio/hugo/releases/download/v{{.VERSION}}/hugo_extended_{{.VERSION}}_{{.SUFFIX}}";
-  #    FILE: "{{base .URL}}"
-  #    OUT: hugo
-  #  cmds:
-  #  - task: download-and-extract
-  #    vars:
-  #      URL: "{{.URL}}"
-  #      FILE: "{{.FILE}}"
-  #      OUT: "{{.OUT}}"
-
   helm:
     desc: download helm
     vars:
@@ -289,48 +266,26 @@ tasks:
     cmds:
     - |
       case "{{.OS}}-{{.ARCH}}" in
-      darwin-*) touch zip ;;
-      linux-*)
+      darwin-* | linux-*)
         cat >zip <<EOF
-      #!/bin/bash
-      if test -x /bin/zip -o -x /usr/bin/zip -o -x /usr/local/bin/zip
-      then rm "\$0" ; exec zip "\$@"
-      else echo "Please install zip in your system." ; exit 1
-      fi
+      #!/bin/sh
+      for ZIP in /bin/zip /usr/bin/zip /usr/local/bin/zip
+      do
+        if test -x "\$ZIP"
+        then exec "\$ZIP" "\$@"
+        fi
+      done
+      echo "Please install zip in your system."
+      exit 1
       EOF
         executable zip
       ;;
       windows-*)
-         curl -sL "{{.ZIP_EXE}}" -o zip.exe
-         executable zip.exe
+        curl -sL "{{.ZIP_EXE}}" -o zip.exe
+        executable zip.exe
       ;;
       esac
 
-  #kubefwd:
-  #  desc: download kubefwd
-  #  vars:
-  #    VERSION: "1.25.3"
-  #    SUFFIX:
-  #      sh: |
-  #          case "{{.OS}}-{{.ARCH}}" in
-  #          linux-amd64) echo "_Linux_x86_64" ;;
-  #          linux-arm64) echo "_Linux_arm64" ;;
-  #          darwin-amd64) echo "_Darwin_x86_64" ;;
-  #          darwin-arm64) echo "_Darwin_arm64" ;;
-  #          windows-*) echo "_Windows_x86_64" ;;
-  #          *) echo "unknown" ;;
-  #          esac
-  #          
#https://github.com/txn2/kubefwd/releases/download/1.22.5/kubefwd_Darwin_x86_64.tar.gz
-  #    URL: 
"https://github.com/txn2/kubefwd/releases/download/{{.VERSION}}/kubefwd{{.SUFFIX}}{{.ARC}}";
-  #    FILE: "{{base .URL}}"
-  #    OUT: kubefwd
-  #  cmds:
-  #  - task: download-and-extract
-  #    vars:
-  #      URL: "{{.URL}}"
-  #      FILE: "{{.FILE}}"
-  #      OUT: kubefwd
-
   all:
     - task: 7zz
     - task: coreutils
@@ -345,8 +300,6 @@ tasks:
     # do not test zip as it is a special case
     #- task: zip
     # commented out for now
-    #- task: kubefwd
-    #- task: hugo
     #- task: k3d
 
   test:
@@ -385,4 +338,3 @@ tasks:
    - __OS=darwin  __ARCH=amd64 ops -task -t prereq.yml test
    - __OS=darwin  __ARCH=arm64 ops -task -t prereq.yml test
    - __OS=windows __ARCH=amd64 ops -task -t prereq.yml test
-

Reply via email to