-
Notifications
You must be signed in to change notification settings - Fork 0
/
devbox.json
37 lines (37 loc) · 1.2 KB
/
devbox.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"packages": [
"go@latest",
"golangci-lint@latest",
"runx:mvdan/gofumpt@latest",
],
"shell": {
"init_hook": [
"export \"GOROOT=$(go env GOROOT)\"",
"export \"PATH=$(pwd)/dist:$PATH\""
],
"scripts": {
"build": "go build -o dist/envsec cmd/envsec/main.go",
"lint": "golangci-lint run -c ../.golangci.yml",
"test": "go test ./...",
"login-dev": [
"echo 'WARNING: auth-service from frontend must be running locally'",
"export ENVSEC_CLIENT_ID=3945b320-bd31-4313-af27-846b67921acb",
"export ENVSEC_ISSUER=https://laughing-agnesi-vzh2rap9f6.projects.oryapis.com",
"export ENVSEC_JETPACK_API_HOST=https://apisvc-6no3bdensq-uk.a.run.app",
// set ENVSEC_JETPACK_API_HOST to localhost:8080 if running apisvc locally
// "export ENVSEC_JETPACK_API_HOST=http://localhost:8080",
"devbox run build",
"dist/envsec auth login",
],
"fmt": [
"find . -name '*.go' -not -wholename './gen/*' -exec gofumpt -w -l {} \\+",
"if [ -n \"$CI\" ]; then",
" git diff --exit-code",
"fi"
],
}
},
"nixpkgs": {
"commit": "f80ac848e3d6f0c12c52758c0f25c10c97ca3b62"
}
}