fix: add vscode local debugging support (#2585)
Build / e2e-test (push) Blocked by required conditions
Build / Release And Push (push) Blocked by required conditions
Build / Running Go tests (push) Waiting to run
Build / Front-end (push) Blocked by required conditions
Build / Back-end (push) Blocked by required conditions
Build / Go-Linter (push) Blocked by required conditions

This commit is contained in:
Satinder Singh
2024-01-06 17:26:33 -08:00
committed by GitHub
parent 86dea71efd
commit c542929835
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ bin/
.idea/
*.iml
.vscode/
.vscode/settings.json
tmp/
tmpFiles/
+15
View File
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"cwd": "${workspaceFolder}",
"debugAdapter": "dlv-dap",
"args": ["--createDatabase=true"]
}
]
}
+3
View File
@@ -86,6 +86,9 @@ docker-build: ## Build docker image with the manager.
docker-push: ## Push docker image with the manager.
docker push ${REGISTRY}/${IMG}:${IMG_TAG}
deps: ## Run dependencies for local development
docker compose up -d db
lint-install: ## Install golangci-lint
@# The following installs a specific version of golangci-lint, which is appropriate for a CI server to avoid different results from build to build
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.40.1