From 5e468413a9dffcf3615c4b55dfbf5a133dc4e2f1 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sun, 30 Jun 2024 15:05:05 +0400 Subject: [PATCH] chore: add `go.work` file This fixes `gopls` to look up usage correctly across sub-packages in the same repo. Signed-off-by: Andrey Smirnov --- .gitignore | 3 ++- .kres.yaml | 1 + Makefile | 4 ++-- go.work | 7 +++++++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 go.work diff --git a/.gitignore b/.gitignore index 1ba1aaad..b6dd0325 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,11 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2022-11-30T18:14:53Z by kres c41f376. +# Generated on 2024-06-30T11:04:55Z by kres 4c9f215. _out hack/generate-certs.yml hack/generate-certs/ca-root hack/generate-certs/certs hack/compose/docker-compose.override.yml +go.work.sum frontend/node_modules diff --git a/.kres.yaml b/.kres.yaml index d03f1bbc..6691a241 100644 --- a/.kres.yaml +++ b/.kres.yaml @@ -239,6 +239,7 @@ spec: - "hack/generate-certs/ca-root" - "hack/generate-certs/certs" - "hack/compose/docker-compose.override.yml" + - go.work.sum --- kind: common.SOPS spec: diff --git a/Makefile b/Makefile index 2b48a677..e75775dc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2024-06-20T19:39:00Z by kres 4c9f215. +# Generated on 2024-07-01T17:08:11Z by kres 4c9f215. # common variables @@ -272,7 +272,7 @@ lint-markdown: ## Runs markdownlint. @$(MAKE) target-$@ .PHONY: lint -lint: lint-eslint lint-golangci-lint-client lint-gofumpt-client lint-govulncheck-client lint-golangci-lint lint-gofumpt lint-markdown ## Run all linters for the project. +lint: lint-eslint lint-golangci-lint-client lint-gofumpt-client lint-govulncheck-client lint-golangci-lint lint-gofumpt lint-govulncheck lint-markdown ## Run all linters for the project. .PHONY: image-omni image-omni: ## Builds image for omni. diff --git a/go.work b/go.work new file mode 100644 index 00000000..3e9d67c6 --- /dev/null +++ b/go.work @@ -0,0 +1,7 @@ +go 1.22.4 + +use ( + . + ./client + ./internal/e2e-tests +)