Skip to content

Commit

Permalink
Remove support for Go 1.18 (#4186)
Browse files Browse the repository at this point in the history
The latest versions of some of our dependencies require Go 1.19 at
least.
  • Loading branch information
nono authored Oct 25, 2023
2 parents fdac27a + fdf8aca commit 5a4a5da
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- go-version: '1.21.x'
couchdb-version: '3.3.2'
# More exotic version
- go-version: '1.18.x'
- go-version: '1.19.x'
couchdb-version: '3.2.3'
steps:
- name: Install CouchDB
Expand Down
13 changes: 0 additions & 13 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ run:
# Timeout for analysis, e.g. 30s, 5m.
# Default: 1m
timeout: 3m
# Exit code when at least one issue was found.
# Default: 1
issues-exit-code: 1
# Include test files or not.
# Default: true
tests: true
# Which dirs to skip: issues from them won't be reported.
# Can use regexp here: `generated.*`, regexp is applied on full path.
# Default value is empty list,
Expand All @@ -30,13 +24,6 @@ run:
skip-files:
# - ".*\\.my\\.go$"
# - lib/bad.go
# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runners: false
# Define the Go version limit.
# Mainly related to generics support since go1.18.
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18
go: '1.18'
linters:
# Disable all linters.
# Default: false
Expand Down
2 changes: 1 addition & 1 deletion docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ executable bit (`chmod +x cozy-stack`) and put it in your `$PATH`.
#### Compile the binary using `go`

You can compile a `cozy-stack` from the source.
First, you need to [install go](https://golang.org/doc/install), version >= 1.18. With `go`
First, you need to [install go](https://golang.org/doc/install), version >= 1.19. With `go`
installed and configured, you can run the following commands:

```
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cozy/cozy-stack

go 1.18
go 1.19

require (
github.com/Masterminds/semver/v3 v3.2.1
Expand Down

0 comments on commit 5a4a5da

Please sign in to comment.