(Feat): Initial Commit
Some checks failed
Build & Test / build-test (push) Has been cancelled
Build & Test / swagger-codegen-cli (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled

This commit is contained in:
2026-07-03 19:41:31 +05:30
commit 7e940c83a7
461 changed files with 45002 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
//go:build scripts
// nolint:revive
package util
import "os"
// Note that VSCode/gopls currently spawns a "No packages found for open file: [...]" here.
// This is expected and will go away with gopls v1.0, see https://github.com/golang/go/issues/29202
// GetProjectRootDir returns the path as string to the project_root while **scripts generation**.
// Note: This function replaces the original util.GetProjectRootDir when go runs with the "script" build tag.
// https://stackoverflow.com/questions/43215655/building-multiple-binaries-using-different-packages-and-build-tags
// Should be in sync with "scripts/internal/util/get_project_root_dir.go"
func GetProjectRootDir() string {
if val, ok := os.LookupEnv("PROJECT_ROOT_DIR"); ok {
return val
}
return "/app"
}