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: CONTRIBUTING.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,39 @@ golangci-lint run ./...
44
44
45
45
Add or update tests for bug fixes and new behavior.
46
46
47
+
### Using mise
48
+
49
+
This repository includes a `mise.toml` file for managing the recommended Go
50
+
and golangci-lint versions and for providing convenient development tasks.
51
+
52
+
After installing mise, set up the project tools with:
53
+
54
+
```sh
55
+
mise install
56
+
```
57
+
58
+
You can then run the complete local check suite with:
59
+
60
+
```sh
61
+
mise run check
62
+
```
63
+
64
+
Individual tasks are also available:
65
+
66
+
```sh
67
+
mise run format # Format Go source files
68
+
mise run format-check # Check Go formatting (gofmt and gci) without changing files
69
+
mise run build # Build the shopware-cli binary
70
+
mise run test# Run the network-isolated test suite (Linux/macOS only)
71
+
mise run test-unit # Run Go tests without the sandbox wrapper (works everywhere)
72
+
mise run vet # Run go vet
73
+
mise run lint # Run golangci-lint
74
+
```
75
+
76
+
For machine-specific settings, create `mise.local.toml`. This file is ignored
77
+
by Git and should not contain secrets that belong in a dedicated secret
78
+
manager.
79
+
47
80
## Reviews
48
81
49
82
Maintainers may ask for changes, suggest a different direction, or decline a PR if the approach was not discussed beforehand. That is not personal; it is how we keep the project consistent and sustainable.
Copy file name to clipboardExpand all lines: cmd/project/ci.go
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ package project
3
3
import (
4
4
"context"
5
5
"encoding/json"
6
+
"errors"
6
7
"fmt"
7
8
"os"
8
9
"os/exec"
@@ -423,7 +424,7 @@ func projectCISafetyCheck(ctx context.Context, root string, force bool, getenv f
423
424
}
424
425
425
426
ifdirty {
426
-
returnfmt.Errorf("project ci removes source files and creates build stubs; refusing to run outside CI with a dirty git working tree. Commit, stash, or clean local changes, or pass --force if you intentionally want to run it")
427
+
returnerrors.New("project ci removes source files and creates build stubs; refusing to run outside CI with a dirty git working tree. Commit, stash, or clean local changes, or pass --force if you intentionally want to run it")
427
428
}
428
429
429
430
logging.FromContext(ctx).Warnf("Running project ci outside a CI environment; this command removes source files and should usually only be used in CI")
0 commit comments