aboutsummaryrefslogtreecommitdiff
path: root/doc/build_env.md
blob: 11daf4044df956bb9ff22657b13208a8a5e1cf28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Build environment

## `go version`

```
go version go1.21.6 linux/amd64
```

## Build commands

All commands are run in the project root directory.

### Compile development version to check for errors

```
go build -race ./cmd/mt-auth-convert
go build -race ./cmd/mt-build-plugin
go build -race ./cmd/mt-multiserver-proxy
```

### Install and run latest version

```
go install github.com/HimbeerserverDE/mt-multiserver-proxy/cmd/...@latest && mt-multiserver-proxy
```

## Formatting

```
goimports -l -w .
# go fmt
```