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
Copy file name to clipboardExpand all lines: devbox.json
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"packages": {
5
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",
@@ -38,18 +38,18 @@
38
38
"test": "go test -race -cover ./...",
39
39
"test-projects-only": "DEVBOX_RUN_PROJECT_TESTS=1 go test -v -timeout ${DEVBOX_GOLANG_TEST_TIMEOUT:-30m} ./... -run \"TestExamples|TestScriptsWithProjects\"",
40
40
"update-examples": "devbox run build && go run testscripts/testrunner/updater/main.go",
41
-
// Updates the Flake's vendorHash: First run `go mod vendor` to vendor
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
44
44
// read into the Nix Flake.
45
45
"update-hash": [
46
46
"go mod vendor",
47
47
"hash=$(nix hash path vendor)",
48
48
"echo \"$hash\" > vendor-hash",
49
-
"rm -rf vendor"
49
+
"rm -rf vendor",
50
+
"echo \"Vendor Hash: $hash\""
50
51
],
51
-
"tidy": "go mod tidy",
52
-
52
+
"tidy": ["go mod tidy", "devbox run update-hash"],
53
53
// docker-testscripts runs the testscripts with Docker to exercise
54
54
// Linux-specific tests. It invokes the test binary directly, so any extra
55
55
// test runner flags must have their "-test." prefix.
0 commit comments