Skip to content

Commit 79c37ee

Browse files
chore: remove caching directives from mise tasks (#836)
This change removes `#MISE sources` and `#MISE outputs` directives from all mise tasks as it's caching semantics often caused false positives and tasks, such `infra:start`, would be skipped when they shouldn't have.
1 parent d445fa1 commit 79c37ee

File tree

15 files changed

+0
-25
lines changed

15 files changed

+0
-25
lines changed

.mise-tasks/build/cli.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#MISE description="Build the gram cli"
44
#MISE dir="{{ config_root }}/cli"
5-
#MISE sources=["go.mod", "go.sum", "**/*.go"]
6-
#MISE outputs={ auto = true }
75
#MISE depends=["go:tidy"]
86

97
#USAGE flag "--readonly" help="Build with -mod=readonly"

.mise-tasks/build/internal-sdk.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#MISE description="Build the internal SDK that powers the dashboard"
44
#MISE dir="{{ config_root }}/client/sdk"
5-
#MISE sources=["package.json", "pnpm-lock.yaml", "client/sdk/package.json", "client/sdk/src/**/*.ts"]
6-
#MISE outputs=["client/sdk/esm/**/*"]
75
#MISE depends=["install:pnpm"]
86

97
#USAGE flag "--readonly" help="Build with --frozen-lockfile"

.mise-tasks/build/server.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#MISE description="Build the gram server"
44
#MISE dir="{{ config_root }}/server"
5-
#MISE sources=["go.mod", "go.sum", "**/*.go"]
6-
#MISE outputs={ auto = true }
75
#MISE depends=["go:tidy"]
86

97
#USAGE flag "--readonly" help="Build with -mod=readonly"

.mise-tasks/gen/goa-server.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env bash
22
#MISE dir="{{ config_root }}/server"
33
#MISE description="Generate from Goa design files"
4-
#MISE sources=["server/design/**/*.go"]
5-
#MISE outputs=["server/gen/**/*"]
64

75
set -e
86
exec goa gen github.com/speakeasy-api/gram/server/design

.mise-tasks/gen/sdk.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env bash
22
#MISE description="Generate SDK from OpenAPI spec"
3-
#MISE sources=["server/gen/http/openapi3.yaml", "overlays/goa.yaml"]
4-
#MISE outputs=["client/sdk/**/*"]
53

64
set -e
75
exec speakeasy run

.mise-tasks/gen/sqlc-server.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env bash
22
#MISE dir="{{ config_root }}/server"
33
#MISE description="Generate from SQLC files"
4-
#MISE sources=["**/*.sql","database/sqlc.yaml"]
5-
#MISE outputs=["internal/**/{db.go,models.go,queries.sql.go,query.sql.go}"]
64

75
set -e
86
exec sqlc generate -f ./database/sqlc.yaml

.mise-tasks/infra/start.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
22
#MISE description="Start up databases, caches and so on"
3-
#MISE sources=["/dev/null"]
43

54
profile=()
65
if [[ "$GRAM_ENABLE_OTEL_TRACES" == "1" || "$GRAM_ENABLE_OTEL_METRICS" == "1" ]]; then

.mise-tasks/infra/stop.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
22
#MISE description="Stop all docker compose services"
3-
#MISE sources=["/dev/null"]
43

54
set -e
65

.mise-tasks/lint/cli.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#MISE description="Run golangci-lint on the CLI codebase"
44
#MISE dir="{{ config_root }}/cli"
5-
#MISE sources=["server/**/*.go", ".golangci.yml"]
6-
#MISE outputs=["server/**/*.go"]
75

86
#USAGE flag "--long" help="Enable more detailed reporting"
97

.mise-tasks/lint/client.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env bash
22

33
#MISE description="Run linting on all client projects using pnpm"
4-
#MISE sources=["client/**/*.ts", "client/**/*.tsx", "client/**/*.js", "client/**/*.jsx"]
5-
#MISE outputs=["client/**/*.ts", "client/**/*.tsx", "client/**/*.js", "client/**/*.jsx"]
64

75
set -e
86

0 commit comments

Comments
 (0)