From 7b803d6dfd7b95e60f0bfca8c452a182918b8ecc Mon Sep 17 00:00:00 2001 From: Mark Rossetti Date: Fri, 15 Sep 2023 10:10:11 -0700 Subject: [PATCH 1/3] Fixing run-lint github workflows Signed-off-by: Mark Rossetti --- .github/workflows/capz.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/capz.yml b/.github/workflows/capz.yml index 840f2d73..2bbc411e 100644 --- a/.github/workflows/capz.yml +++ b/.github/workflows/capz.yml @@ -29,10 +29,11 @@ jobs: name: lint go runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 with: go-version: "1.20" - - uses: actions/checkout@v3 + cache: false # workaround for golangci-lint caching issues https://github.com/golangci/golangci-lint-action/pull/704 # run mod download prior to running linter to avoid timeouts while running linter - name: build go run: | From 478b5fdb7b6e5d91d1e85eabf516d0f6f4368561 Mon Sep 17 00:00:00 2001 From: Mark Rossetti Date: Fri, 15 Sep 2023 10:18:54 -0700 Subject: [PATCH 2/3] trigger linter --- capz/gmsa/configuration/configure.go | 1 + 1 file changed, 1 insertion(+) diff --git a/capz/gmsa/configuration/configure.go b/capz/gmsa/configuration/configure.go index 25a7280f..b5cc7fc5 100644 --- a/capz/gmsa/configuration/configure.go +++ b/capz/gmsa/configuration/configure.go @@ -236,6 +236,7 @@ func fileOnHost(path string) (*os.File, error) { if err := os.MkdirAll(filepath.Dir(path), os.ModePerm); err != nil { return nil, err } + return os.Create(path) } From 1b851995050d91e3e4981c53e8d1aa33c5d8b867 Mon Sep 17 00:00:00 2001 From: Mark Rossetti Date: Fri, 15 Sep 2023 10:28:40 -0700 Subject: [PATCH 3/3] golint timeout to 10m Signed-off-by: Mark Rossetti --- .github/workflows/capz.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/capz.yml b/.github/workflows/capz.yml index 2bbc411e..404a5d26 100644 --- a/.github/workflows/capz.yml +++ b/.github/workflows/capz.yml @@ -45,7 +45,7 @@ jobs: with: version: latest working-directory: capz/gmsa/configuration - args: --build-tags=e2e --timeout=5m + args: --build-tags=e2e --timeout=10m build-gmsa-configuration: runs-on: ubuntu-latest steps: