Skip to content

Commit

Permalink
[chore] bump go version -> 1.21.x (#2287)
Browse files Browse the repository at this point in the history
* [chore] bump go version -> 1.21.x

* versions

* lint
  • Loading branch information
tsmethurst authored Oct 23, 2023
1 parent 69ba9a7 commit 013a17f
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:
# We use golangci-lint for linting.
# See: https://golangci-lint.run/
- name: lint
image: golangci/golangci-lint:v1.53.1
image: golangci/golangci-lint:v1.55.0
volumes:
- name: go-build-cache
path: /root/.cache/go-build
Expand All @@ -28,7 +28,7 @@ steps:
- pull_request

- name: test
image: golang:1.20.4-alpine
image: golang:1.21-alpine
volumes:
- name: go-build-cache
path: /root/.cache/go-build
Expand Down Expand Up @@ -79,7 +79,7 @@ steps:
- yarn --cwd ./web/source build

- name: snapshot
image: superseriousbusiness/gotosocial-drone-build:0.3.0 # https://github.com/superseriousbusiness/gotosocial-drone-build
image: superseriousbusiness/gotosocial-drone-build:0.4.0 # https://github.com/superseriousbusiness/gotosocial-drone-build
volumes:
- name: go-build-cache
path: /root/.cache/go-build
Expand Down Expand Up @@ -120,7 +120,7 @@ steps:
- main

- name: release
image: superseriousbusiness/gotosocial-drone-build:0.3.0 # https://github.com/superseriousbusiness/gotosocial-drone-build
image: superseriousbusiness/gotosocial-drone-build:0.4.0 # https://github.com/superseriousbusiness/gotosocial-drone-build
volumes:
- name: go-build-cache
path: /root/.cache/go-build
Expand Down Expand Up @@ -179,7 +179,7 @@ clone:

steps:
- name: mirror
image: superseriousbusiness/gotosocial-drone-build:0.3.0
image: superseriousbusiness/gotosocial-drone-build:0.4.0
environment:
ORIGIN_REPO: https://github.com/superseriousbusiness/gotosocial
TARGET_REPO: https://codeberg.org/superseriousbusiness/gotosocial
Expand All @@ -192,6 +192,6 @@ steps:

---
kind: signature
hmac: d7b93470276a0df7e4d862941489f00da107df3d085200009b776d33599e6043
hmac: 00f69df57e8852d610f8d570c504aae22d315c2a0ff4808ef8f191554745c5ae

...
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ run:
linters:
# enable some extra linters, see here for the list: https://golangci-lint.run/usage/linters/
enable:
- goconst
- gocritic
- gofmt
- goheader
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ In case this post disappears, here are the steps (slightly modified):

#### Binary

To get started, you first need to have Go installed. GtS is currently using Go 1.20, so you should take that too. See [here](https://golang.org/doc/install) for installation instructions.
To get started, you first need to have Go installed. GtS is currently using Go 1.21, so you should take that too. See [here](https://golang.org/doc/install) for installation instructions.

Once you've got go installed, clone this repository into your Go path. Normally, this should be `~/go/src/github.com/superseriousbusiness/gotosocial`.

Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/superseriousbusiness/gotosocial

go 1.20
go 1.21

toolchain go1.21.3

require (
codeberg.org/gruf/go-bytesize v1.0.2
Expand Down
Loading

0 comments on commit 013a17f

Please sign in to comment.