This is an automated email from the ASF dual-hosted git repository.
sciabarracom pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-cli.git
The following commit(s) were added to refs/heads/main by this push:
new 7a01fbc cleaning environnt
7a01fbc is described below
commit 7a01fbc023d8df499943c347b07cd3c5659e3c21
Author: Trustable User <[email protected]>
AuthorDate: Sat Jul 11 11:25:49 2026 +0200
cleaning environnt
---
Taskfile.yml | 11 +++++++----
cli.code-workspace | 4 +++-
main_test.go | 3 +++
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 0a69e7b..11ae9d4 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -38,7 +38,7 @@ tasks:
- git add version.txt branch.txt
- git commit -m "$(cat version.txt)" || true
- git tag -f "v$(cat version.txt)"
-
+
trigger:
desc: create tag and push triggering a build
@@ -84,7 +84,7 @@ tasks:
- cp -v ops $HOME/.local/bin
- |
if ! which ops | grep $HOME/.local/bin
- then
+ then
echo "$HOME/.local/bin is not in the path - adding it"
echo 'export PATH="$HOME/.local/bin:$PATH"' >>$HOME/.bashrc
echo 'export PATH="$HOME/.local/bin:$PATH"' >>$HOME/.zshrc
@@ -109,9 +109,9 @@ tasks:
- go clean -testcache -cache
- go test -count=1 {{.F}} github.com/apache/openserverless-cli
- go test -count=1 {{.F}} github.com/apache/openserverless-cli/config
- - go test -count=1 {{.F}} github.com/apache/openserverless-cli/tools
+ - go test -count=1 {{.F}} github.com/apache/openserverless-cli/tools
- go test github.com/apache/openserverless-cli/auth
-
+
bats:
dir: tests
@@ -130,6 +130,9 @@ tasks:
- task: bats
- rm -Rf ~/.ops/olaris
- |
+ unset OPS_BRANCH
+ unset OPS_REPO
+ unset OPS_ROOT
if test -z "{{.T}}"
then bats/bin/bats {{.F}} .
else bats/bin/bats {{.F}} {{.T}}.bats
diff --git a/cli.code-workspace b/cli.code-workspace
index 68e91f6..21710ab 100644
--- a/cli.code-workspace
+++ b/cli.code-workspace
@@ -10,7 +10,9 @@
"activityBar.background": "#28075d",
"titleBar.activeBackground": "#28075d",
"titleBar.activeForeground": "#28075d",
- "statusBar.background": "#28075d"
+ "statusBar.background": "#28075d",
+ "titleBar.inactiveBackground": "#310971",
+ "titleBar.inactiveForeground": "#FDFBFF"
},
"go.goroot":
"/nix/store/16g3awzjv3341s27hkkkv1vk5dw4206m-go-1.22.5/share/go"
}
diff --git a/main_test.go b/main_test.go
index 22a8af6..30a14c6 100644
--- a/main_test.go
+++ b/main_test.go
@@ -79,6 +79,9 @@ func TestMain(m *testing.M) {
workDir, _ = filepath.Abs(wd)
homeDir, _ = homedir.Dir()
taskDryRun = true
+ os.Unsetenv("OPS_REPO")
+ os.Unsetenv("OPS_BRANCH")
+ os.Unsetenv("OPS_ROOT")
os.Exit(m.Run())
}