You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Instant, easy, and predictable development environments",
4
4
"packages": {
5
-
"go": "latest",
5
+
"go": "latest",
6
6
"runx:golangci/golangci-lint": "latest",
7
-
"runx:mvdan/gofumpt": "latest",
7
+
"runx:mvdan/gofumpt": "latest",
8
8
},
9
9
"env": {
10
10
"GOENV": "off",
11
-
"PATH": "$PATH:$PWD/dist",
11
+
"PATH": "$PATH:$PWD/dist",
12
12
},
13
13
"shell": {
14
14
"init_hook": [
@@ -20,24 +20,24 @@
20
20
],
21
21
"scripts": {
22
22
// Build devbox for the current platform
23
-
"build": "go build -o dist/devbox ./cmd/devbox",
23
+
"build": "go build -o dist/devbox ./cmd/devbox",
24
24
"build-darwin-amd64": "GOOS=darwin GOARCH=amd64 go build -o dist/devbox-darwin-amd64 ./cmd/devbox",
25
25
"build-darwin-arm64": "GOOS=darwin GOARCH=arm64 go build -o dist/devbox-darwin-arm64 ./cmd/devbox",
26
-
"build-linux-amd64": "GOOS=linux GOARCH=amd64 go build -o dist/devbox-linux-amd64 ./cmd/devbox",
27
-
"build-linux-arm64": "GOOS=linux GOARCH=arm64 go build -o dist/devbox-linux-arm64 ./cmd/devbox",
26
+
"build-linux-amd64": "GOOS=linux GOARCH=amd64 go build -o dist/devbox-linux-amd64 ./cmd/devbox",
27
+
"build-linux-arm64": "GOOS=linux GOARCH=arm64 go build -o dist/devbox-linux-arm64 ./cmd/devbox",
28
28
"build-all": [
29
29
"devbox run build-darwin-amd64",
30
30
"devbox run build-darwin-arm64",
31
31
"devbox run build-linux-amd64",
32
32
"devbox run build-linux-arm64",
33
33
],
34
34
// Open VSCode
35
-
"code": "code .",
36
-
"lint": "golangci-lint run --timeout 5m && scripts/gofumpt.sh",
37
-
"fmt": "scripts/gofumpt.sh",
38
-
"test": "go test -race -cover ./...",
39
-
"test-projects-only": "DEVBOX_RUN_PROJECT_TESTS=1 go test -v -timeout ${DEVBOX_GOLANG_TEST_TIMEOUT:-30m} ./... -run \"TestExamples|TestScriptsWithProjects\"",
40
-
"update-examples": "devbox run build && go run testscripts/testrunner/updater/main.go",
35
+
"code": "code .",
36
+
"lint": "golangci-lint run --timeout 5m && scripts/gofumpt.sh",
37
+
"fmt": "scripts/gofumpt.sh",
38
+
"test": "go test -race -cover ./...",
39
+
"test-projects-only": "DEVBOX_RUN_PROJECT_TESTS=1 go test -v -timeout ${DEVBOX_GOLANG_TEST_TIMEOUT:-30m} ./... -run \"TestExamples/development_haskell_run_test.test\"",
40
+
"update-examples": "devbox run build && go run testscripts/testrunner/updater/main.go",
41
41
// Updates the Flake's vendorHash: First run `go mod vendor` to vendor
42
42
// the dependencies, then hash the vendor directory with Nix.
43
43
// The hash is saved to the `vendor-hash` file, which is then
@@ -49,7 +49,10 @@
49
49
"go mod vendor -o $vendor",
50
50
"nix hash path $vendor >vendor-hash",
51
51
],
52
-
"tidy": ["go mod tidy", "devbox run update-hash"],
52
+
"tidy": [
53
+
"go mod tidy",
54
+
"devbox run update-hash"
55
+
],
53
56
// docker-testscripts runs the testscripts with Docker to exercise
54
57
// Linux-specific tests. It invokes the test binary directly, so any extra
55
58
// test runner flags must have their "-test." prefix.
@@ -59,7 +62,6 @@
59
62
// devbox run docker-testscripts -test.run ^TestScripts$/python
60
63
"docker-testscripts": [
61
64
"cd testscripts",
62
-
63
65
// The Dockerfile looks for a testscripts-$TARGETOS-$TARGETARCH binary
64
66
// to run the tests. Pre-compiling a static test binary lets us avoid
65
67
// polluting the container with a Go toolchain or shared libraries that
0 commit comments