mirror of
				https://github.com/jesseduffield/lazygit.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	Bump required go version to 1.21
We'll need this to use the slices.Sort function in the next commit. It would also be possible to use sort.Ints instead, but it's slower.
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/cd.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/cd.yml
									
									
									
									
										vendored
									
									
								
							| @@ -16,7 +16,7 @@ jobs: | ||||
|       - name: Setup Go | ||||
|         uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: 1.20.x | ||||
|           go-version: 1.21.x | ||||
|       - name: Run goreleaser | ||||
|         uses: goreleaser/goreleaser-action@v4 | ||||
|         with: | ||||
|   | ||||
							
								
								
									
										12
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,7 +1,7 @@ | ||||
| name: Continuous Integration | ||||
|  | ||||
| env: | ||||
|   GO_VERSION: 1.20 | ||||
|   GO_VERSION: 1.21 | ||||
|  | ||||
| on: | ||||
|   push: | ||||
| @@ -32,7 +32,7 @@ jobs: | ||||
|       - name: Setup Go | ||||
|         uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: 1.20.x | ||||
|           go-version: 1.21.x | ||||
|       - name: Test code | ||||
|         # we're passing -short so that we skip the integration tests, which will be run in parallel below | ||||
|         run: | | ||||
| @@ -89,7 +89,7 @@ jobs: | ||||
|       - name: Setup Go | ||||
|         uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: 1.20.x | ||||
|           go-version: 1.21.x | ||||
|       - name: Print git version | ||||
|         run: git --version | ||||
|       - name: Test code | ||||
| @@ -115,7 +115,7 @@ jobs: | ||||
|       - name: Setup Go | ||||
|         uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: 1.20.x | ||||
|           go-version: 1.21.x | ||||
|       - name: Build linux binary | ||||
|         run: | | ||||
|           GOOS=linux go build | ||||
| @@ -142,7 +142,7 @@ jobs: | ||||
|       - name: Setup Go | ||||
|         uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: 1.20.x | ||||
|           go-version: 1.21.x | ||||
|       - name: Check Vendor Directory | ||||
|         # ensure our vendor directory matches up with our go modules | ||||
|         run: | | ||||
| @@ -168,7 +168,7 @@ jobs: | ||||
|       - name: Setup Go | ||||
|         uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: 1.20.x | ||||
|           go-version: 1.21.x | ||||
|       - name: Lint | ||||
|         uses: golangci/golangci-lint-action@v3.7.0 | ||||
|         with: | ||||
|   | ||||
| @@ -30,5 +30,5 @@ linters-settings: | ||||
|     max-func-lines: 0 | ||||
|  | ||||
| run: | ||||
|   go: '1.20' | ||||
|   go: '1.21' | ||||
|   timeout: 10m | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
| # docker build -t lazygit . | ||||
| # docker run -it lazygit:latest /bin/sh | ||||
|  | ||||
| FROM golang:1.20 as build | ||||
| FROM golang:1.21 as build | ||||
| WORKDIR /go/src/github.com/jesseduffield/lazygit/ | ||||
| COPY go.mod go.sum ./ | ||||
| RUN go mod download | ||||
|   | ||||
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| module github.com/jesseduffield/lazygit | ||||
|  | ||||
| go 1.20 | ||||
| go 1.21 | ||||
|  | ||||
| require ( | ||||
| 	github.com/OpenPeeDeeP/xdg v1.0.0 | ||||
|   | ||||
							
								
								
									
										1
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								go.sum
									
									
									
									
									
								
							| @@ -299,6 +299,7 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO | ||||
| github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= | ||||
| github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= | ||||
| github.com/thoas/go-funk v0.9.1 h1:O549iLZqPpTUQ10ykd26sZhzD+rmR5pWhuElrhbC20M= | ||||
| github.com/thoas/go-funk v0.9.1/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q= | ||||
| github.com/urfave/cli v1.20.1-0.20180226030253-8e01ec4cd3e2/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= | ||||
| github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc= | ||||
| github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw= | ||||
|   | ||||
		Reference in New Issue
	
	Block a user