-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathdevbox.json
More file actions
28 lines (28 loc) · 796 Bytes
/
devbox.json
File metadata and controls
28 lines (28 loc) · 796 Bytes
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
{
"packages": [
"go@latest",
"golangci-lint@latest"
],
"env": {
"AR": "/usr/bin/ar",
"AS": "/usr/bin/as",
"CC": "/usr/bin/cc",
"CXX": "/usr/bin/cxx",
"LD": "/usr/bin/ld",
"NM": "/usr/bin/nm"
},
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"go-mod-sync": [
"find . -maxdepth 4 -type f -name go.mod -execdir go mod tidy \\;",
"go work sync"
],
"build": "find . -maxdepth 4 -type f -name go.mod -execdir go build -v ./... \\;",
"lint": "find . -maxdepth 4 -type f -name go.mod -exec dirname {} \\; | xargs -I {} bash -c \"cd '{}' && golangci-lint run --timeout 300s\"",
"test": "find . -maxdepth 4 -type f -name go.mod -execdir go test -v ./... \\;"
}
}
}