From ee833afaaaf7e3273c4cbd05d59bd352982e9711 Mon Sep 17 00:00:00 2001 From: gloriacai01 Date: Thu, 10 Oct 2024 10:37:24 -0400 Subject: [PATCH] what url --- .github/workflows/test.yml | 10 +++------- cli/module_generate.go | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8889854150d..843e7f26270 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.11" + cache: 'pip' - name: Set main env vars if: github.event_name != 'pull_request_target' @@ -64,14 +64,10 @@ jobs: - name: Run go unit tests run: | - export PATH=$PATH chmod -R a+rwx . # temporary fix for arm runners - which -a python3 - which python3 - python3 --version - sudo apt update + sudo apt update sudo apt install -y python3.11-venv - echo "installed venv" + echo "installed venv?" python3 -m venv .venv .venv/bin/python --version sudo -Hu testbot bash -lc 'go test ./cli -run TestGenerateModuleAction' diff --git a/cli/module_generate.go b/cli/module_generate.go index 001f8310da3..622f234c48b 100644 --- a/cli/module_generate.go +++ b/cli/module_generate.go @@ -591,6 +591,7 @@ func getLatestSDKTag(c *cli.Context, language string) (string, error) { if err != nil { return "", errors.Wrapf(err, "cannot get latest %s release", repo) } + fmt.Println("url " + url) defer utils.UncheckedErrorFunc(resp.Body.Close) if resp.StatusCode != http.StatusOK { return "", errors.Errorf("unexpected http GET status: %s", resp.Status)