From 48d2fba5ad1086047e81516a543e3d367db829f7 Mon Sep 17 00:00:00 2001 From: Jonathan Schweder Date: Sun, 19 Nov 2023 14:05:37 +0000 Subject: [PATCH] Version 2.X (#155) Remove support for Go versions below 1.20 --------- Co-authored-by: Jonathan Schweder --- .github/workflows/coverage.yml | 4 ++-- .github/workflows/test.yml | 2 +- README.md | 6 +++++- go.mod | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ec374f5..8eb3e9e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,8 +11,8 @@ jobs: fetch-depth: 2 - uses: actions/setup-go@v2 with: - go-version: '1.14' + go-version: '1.20' - name: Run coverage run: go test -race -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage to Codecov - run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file + run: bash <(curl -s https://codecov.io/bash) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14d287a..22b509e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x] + go-version: [1.20.x, 1.21.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/README.md b/README.md index 7f4d0a2..a71982e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Faker is a Go library that generates fake data for you. Whether you need to boot Faker is heavily inspired by PHP"s [Faker](https://github.com/fzaninotto/Faker) -Faker requires Go >= 1.11 +Faker requires Go >= 1.11 and < 1.20 for 1.X and Go >= 1.20 for 2.X [![PkgGoDev](https://pkg.go.dev/badge/github.com/jaswdr/faker)](https://pkg.go.dev/github.com/jaswdr/faker) [![Test](https://github.com/jaswdr/faker/actions/workflows/test.yml/badge.svg)](https://github.com/jaswdr/faker/actions/workflows/test.yml) @@ -144,6 +144,10 @@ ok github.com/jaswdr/faker 0.010s Push to your fork and send a new pull request from your fork to this repository. +## Versioning + +Faker is maintained under the [Semantic Versioning guidelines](http://semver.org/). Starting at `2.X`, we only support maintained versions of Go. Which according to [Go's Release Policy](https://go.dev/doc/devel/release) means that we only support the two newer major versions. + ## License Faker is released under the MIT Licence. See the bundled LICENSE file for details. diff --git a/go.mod b/go.mod index 0a5bf47..fb206a5 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/jaswdr/faker -go 1.11 +go 1.20