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

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


The following commit(s) were added to refs/heads/main by this push:
     new a536fb4  better check
a536fb4 is described below

commit a536fb4fd6b436d6f3acdeffd3f867a785d5327d
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sun Sep 14 19:40:28 2025 +0100

    better check
---
 ide/opsfile.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/ide/opsfile.yml b/ide/opsfile.yml
index 6359d3e..25f4ad8 100644
--- a/ide/opsfile.yml
+++ b/ide/opsfile.yml
@@ -41,8 +41,14 @@ tasks:
 
   prereq:
     silent: true
+    vars: 
+      MSG: |
+            This command must be run inside a devcontainer.
+            Please use 'ops ide devcontainer' to create a configuration and 
enter in a devcontainer.
+            You can then use 'ops ide devel' and 'ops ide deploy'.
+            You can also reopen the project with VSCode and use the command 
'Reopen in Container'.
     cmds:
-      - test -n "$DEVCONTAINER"  || test -n "$REMOTE_CONTAINERS"  || die "you 
need to run in a devcontainer - use ops ide devcontainer"
+      - test -e "/.dockerenv" || die "{{.MSG}}"
       - test "$(python3 -V | awk -F. '{print $2}')" -ge 10 || die "python 3.10 
or greater not available"
       - test -x "$(which virtualenv)" || die "you need python virtualenv"
       - test "$(node -v | awk -F. '{print substr($1,2) }')" -ge 18 || die 
"nodejs 18 or greater not available"

Reply via email to