Parcourir la source

Merge pull request #329 from 9seconds/tools

Tell about mise in readme
tags/v2.1.10^2^2
Sergei Arkhipov il y a 2 mois
Parent
révision
bdabb0e59a
Aucun compte lié à l'adresse e-mail de l'auteur
3 fichiers modifiés avec 35 ajouts et 6 suppressions
  1. 4
    4
      .mise.toml
  2. 9
    2
      README.md
  3. 22
    0
      mise.lock

+ 4
- 4
.mise.toml Voir le fichier

@@ -1,7 +1,10 @@
1 1
 [tools]
2
-go = "latest"
2
+"go:golang.org/x/pkgsite/cmd/pkgsite" = "latest"
3 3
 "go:golang.org/x/tools/gopls" = "latest"
4 4
 "go:mvdan.cc/gofumpt" = "latest"
5
+go = "latest"
6
+golangci-lint = "latest"
7
+goreleaser = "latest"
5 8
 
6 9
 [vars]
7 10
 fuzzflags = "-fuzztime=120s"
@@ -21,7 +24,6 @@ run = [
21 24
 
22 25
 [tasks.lint]
23 26
 description = "Run linter"
24
-tools.golangci-lint = "latest"
25 27
 run = "golangci-lint run"
26 28
 
27 29
 [tasks.test]
@@ -77,7 +79,6 @@ go build \
77 79
 
78 80
 [tasks.release]
79 81
 description = "Create release tarballs"
80
-tools.goreleaser = "latest"
81 82
 sources = ["**/*.go", "go.mod", "go.sum", ".goreleaser.yml"]
82 83
 run = [
83 84
     "goreleaser --snapshot --clean",
@@ -92,7 +93,6 @@ run = "docker buildx build --pull -t mtg ."
92 93
 
93 94
 [tasks.docs]
94 95
 description = "Run doc server"
95
-tools."go:golang.org/x/pkgsite/cmd/pkgsite" = "latest"
96 96
 run = "pkgsite -http 0.0.0.0:10000"
97 97
 
98 98
 [tasks.fmt]

+ 9
- 2
README.md Voir le fichier

@@ -162,6 +162,12 @@ This project has several main branches
162 162
 
163 163
 ## Getting started
164 164
 
165
+### Download mise
166
+
167
+mtg uses [mise](https://mise.jdx.dev/) to maintain its development
168
+dependencies + replaces a make for building things. Please
169
+[install](https://mise.jdx.dev/getting-started.html) it first.
170
+
165 171
 ### Download a tool
166 172
 
167 173
 #### Download binaries
@@ -198,13 +204,14 @@ go install github.com/9seconds/mtg/v2@latest
198 204
 ```console
199 205
 git clone https://github.com/9seconds/mtg.git
200 206
 cd mtg
201
-make static
207
+mise install
208
+mise tasks run build
202 209
 ```
203 210
 
204 211
 or for the docker image:
205 212
 
206 213
 ```console
207
-make docker
214
+mise tasks run image
208 215
 ```
209 216
 
210 217
 ### Generate secret

+ 22
- 0
mise.lock Voir le fichier

@@ -7,6 +7,10 @@ backend = "core:go"
7 7
 "platforms.macos-x64" = { checksum = "sha256:1ca28b7703cbea05a65b2a1d92d6b308610ef92f8824578a0874f2e60c9d5a22", url = "https://dl.google.com/go/go1.26.0.darwin-amd64.tar.gz"}
8 8
 "platforms.windows-x64" = { checksum = "sha256:9bbe0fc64236b2b51f6255c05c4232532b8ecc0e6d2e00950bd3021d8a4d07d4", url = "https://dl.google.com/go/go1.26.0.windows-amd64.zip"}
9 9
 
10
+[[tools."go:golang.org/x/pkgsite/cmd/pkgsite"]]
11
+version = "latest"
12
+backend = "go:golang.org/x/pkgsite/cmd/pkgsite"
13
+
10 14
 [[tools."go:golang.org/x/tools/gopls"]]
11 15
 version = "0.21.0"
12 16
 backend = "go:golang.org/x/tools/gopls"
@@ -14,3 +18,21 @@ backend = "go:golang.org/x/tools/gopls"
14 18
 [[tools."go:mvdan.cc/gofumpt"]]
15 19
 version = "0.9.2"
16 20
 backend = "go:mvdan.cc/gofumpt"
21
+
22
+[[tools.golangci-lint]]
23
+version = "2.9.0"
24
+backend = "aqua:golangci/golangci-lint"
25
+"platforms.linux-arm64" = { checksum = "sha256:94e80cdb51c73c20a313bd3afa1fb23137728813c19fd730248a1e8678fcc46d", url = "https://github.com/golangci/golangci-lint/releases/download/v2.9.0/golangci-lint-2.9.0-linux-arm64.tar.gz"}
26
+"platforms.linux-x64" = { checksum = "sha256:493aaaca2eba6c8bcef847d92716bbd91bbac4b22cdbb0ab5b6a581b32946091", url = "https://github.com/golangci/golangci-lint/releases/download/v2.9.0/golangci-lint-2.9.0-linux-amd64.tar.gz"}
27
+"platforms.macos-arm64" = { checksum = "sha256:a86eabba3507deddd21f2a01a1df2a0ee5bc5c8178d4165cdcaaad8597358760", url = "https://github.com/golangci/golangci-lint/releases/download/v2.9.0/golangci-lint-2.9.0-darwin-arm64.tar.gz"}
28
+"platforms.macos-x64" = { checksum = "sha256:ba29a353be54a74c45946763983808dc8305eeeca73db1761b5ab112f87f8157", url = "https://github.com/golangci/golangci-lint/releases/download/v2.9.0/golangci-lint-2.9.0-darwin-amd64.tar.gz"}
29
+"platforms.windows-x64" = { checksum = "sha256:130fca8fa959eb840267c5e231f030a948e0de1e768bf6a31785505d1061632c", url = "https://github.com/golangci/golangci-lint/releases/download/v2.9.0/golangci-lint-2.9.0-windows-amd64.zip"}
30
+
31
+[[tools.goreleaser]]
32
+version = "2.13.3"
33
+backend = "aqua:goreleaser/goreleaser"
34
+"platforms.linux-arm64" = { checksum = "sha256:156656d0f874542d618568bd50afd3d33ced2e8aab2c60cc7c21e1b9fa52031e", url = "https://github.com/goreleaser/goreleaser/releases/download/v2.13.3/goreleaser_Linux_arm64.tar.gz"}
35
+"platforms.linux-x64" = { checksum = "sha256:4b66f2f78f78561330350651ade557b70328664718490f37834749073af21d20", url = "https://github.com/goreleaser/goreleaser/releases/download/v2.13.3/goreleaser_Linux_x86_64.tar.gz"}
36
+"platforms.macos-arm64" = { checksum = "sha256:5516c37779efb3935d5b213cda3b0b9025ae94ddbcb51df6919acbcdef4194b0", url = "https://github.com/goreleaser/goreleaser/releases/download/v2.13.3/goreleaser_Darwin_all.tar.gz"}
37
+"platforms.macos-x64" = { checksum = "sha256:5516c37779efb3935d5b213cda3b0b9025ae94ddbcb51df6919acbcdef4194b0", url = "https://github.com/goreleaser/goreleaser/releases/download/v2.13.3/goreleaser_Darwin_all.tar.gz"}
38
+"platforms.windows-x64" = { checksum = "sha256:c5586c4ed749ca358ad61ed73ee4b8039cfa68daae8c23e69fb086d549dfb31d", url = "https://github.com/goreleaser/goreleaser/releases/download/v2.13.3/goreleaser_Windows_x86_64.zip"}

Chargement…
Annuler
Enregistrer