From 46fae529ebca3019df79eb742fab1e105dee13b6 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 29 Nov 2024 18:06:24 +0100 Subject: [PATCH] ci: simplify the codegen workflow a bit the codegen ci workflow was previously fixed by copying the checkout dir to the GOPATH. With the updated codegen tooling, this alignment is not a requirement any more. This simplifies the codegen workflow again by reverting the earlier changes that added the copy mechanism. This reverts commit 714f80a80a4de1e104123d720301e6e74799b758. This reverts commit f32d3df99530e6721d693a9f43a59cc6a0848449. Signed-off-by: Michael Adam --- .github/workflows/codegen.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index b4f24a46590a..6140e3155e8b 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -38,18 +38,8 @@ jobs: with: go-version: "1.22" - - name: post-process checkout - copy to github.com - run: | - # copy to the github.com path so codegen will work as expected - mkdir -p $(go env GOPATH)/src/github.com/rook/rook/ - cp -R . $(go env GOPATH)/src/github.com/rook/rook/ - - name: run codegen - run: | - cd $(go env GOPATH)/src/github.com/rook/rook - GOPATH=$(go env GOPATH) make codegen + run: GOPATH=$(go env GOPATH) make codegen - name: validate codegen - run: | - cd $(go env GOPATH)/src/github.com/rook/rook - tests/scripts/validate_modified_files.sh codegen + run: tests/scripts/validate_modified_files.sh codegen