Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Antonboom/errname
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.12
Choose a base ref
...
head repository: Antonboom/errname
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.13
Choose a head ref

Commits on Oct 1, 2023

  1. Bump golang.org/x/tools from 0.12.0 to 0.13.0

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.12.0 to 0.13.0.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.12.0...v0.13.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 1, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    21e9949 View commit details
  2. Merge pull request #27 from Antonboom/dependabot/go_modules/golang.or…

    …g/x/tools-0.13.0
    
    Bump golang.org/x/tools from 0.12.0 to 0.13.0
    Antonboom authored Oct 1, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    dcf6f1a View commit details

Commits on Nov 1, 2023

  1. Bump golang.org/x/tools from 0.13.0 to 0.14.0

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.13.0 to 0.14.0.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.13.0...v0.14.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 1, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    77ac71d View commit details
  2. Merge pull request #28 from Antonboom/dependabot/go_modules/golang.or…

    …g/x/tools-0.14.0
    
    Bump golang.org/x/tools from 0.13.0 to 0.14.0
    Antonboom authored Nov 1, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4d3923e View commit details

Commits on Dec 1, 2023

  1. Bump golang.org/x/tools from 0.14.0 to 0.16.0

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.14.0 to 0.16.0.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.14.0...v0.16.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Dec 1, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1f2be7e View commit details
  2. Merge pull request #29 from Antonboom/dependabot/go_modules/golang.or…

    …g/x/tools-0.16.0
    
    Bump golang.org/x/tools from 0.14.0 to 0.16.0
    Antonboom authored Dec 1, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    15e0430 View commit details

Commits on Jan 1, 2024

  1. Bump golang.org/x/tools from 0.16.0 to 0.16.1

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.16.0 to 0.16.1.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.16.0...v0.16.1)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jan 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d8039f4 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    aee250d View commit details

Commits on Feb 1, 2024

  1. Bump golang.org/x/tools from 0.16.1 to 0.17.0

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.16.1 to 0.17.0.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.16.1...v0.17.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Feb 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    24f2001 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    71b4d72 View commit details

Commits on Mar 1, 2024

  1. Bump golang.org/x/tools from 0.17.0 to 0.18.0

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.17.0 to 0.18.0.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.17.0...v0.18.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6a34379 View commit details

Commits on Mar 2, 2024

  1. update CI

    Antonboom committed Mar 2, 2024
    Copy the full SHA
    36aeae7 View commit details
  2. Bump golangci/golangci-lint-action from 3 to 4

    Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
    - [Release notes](https://github.com/golangci/golangci-lint-action/releases)
    - [Commits](golangci/golangci-lint-action@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: golangci/golangci-lint-action
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7b78c42 View commit details
  3. Merge branch 'master' into dependabot/go_modules/golang.org/x/tools-0…

    ….18.0
    Antonboom authored Mar 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d299b5f View commit details
  4. Merge pull request #33 from Antonboom/dependabot/go_modules/golang.or…

    …g/x/tools-0.18.0
    
    Bump golang.org/x/tools from 0.17.0 to 0.18.0
    Antonboom authored Mar 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7e05be4 View commit details
  5. Merge branch 'master' into dependabot/github_actions/golangci/golangc…

    …i-lint-action-4
    Antonboom authored Mar 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    01581fc View commit details
  6. Merge pull request #34 from Antonboom/dependabot/github_actions/golan…

    …gci/golangci-lint-action-4
    
    Bump golangci/golangci-lint-action from 3 to 4
    Antonboom authored Mar 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6b30f72 View commit details
  7. README: latest release

    Antonboom committed Mar 2, 2024
    Copy the full SHA
    1ce17b7 View commit details

Commits on Apr 1, 2024

  1. Bump golang.org/x/tools from 0.18.0 to 0.19.0

    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.18.0 to 0.19.0.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.18.0...v0.19.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8600d8e View commit details
  2. Merge pull request #35 from Antonboom/dependabot/go_modules/golang.or…

    …g/x/tools-0.19.0
    Antonboom authored Apr 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f70f7d8 View commit details

Commits on Apr 10, 2024

  1. Update link to naming conventions

    The wiki on errors in go has moved to go.dev, so repoint the link there instead.
    winston-stripe authored Apr 10, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    03f7fa4 View commit details

Commits on Apr 11, 2024

  1. Merge pull request #36 from winston-stripe/update-naming-docs-link

    Update link to naming conventions
    Antonboom authored Apr 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b053162 View commit details

Commits on Apr 21, 2024

  1. Testing of Go 1.22

    Antonboom committed Apr 21, 2024
    Copy the full SHA
    e179bfd View commit details
  2. Merge pull request #37 from Antonboom/ci-bump-go-version

    Testing of Go 1.22
    Antonboom authored Apr 21, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6886672 View commit details
Showing with 54 additions and 24 deletions.
  1. +11 −1 .github/dependabot.yml
  2. +31 −11 .github/workflows/ci.yml
  3. +2 −1 README.md
  4. +4 −4 go.mod
  5. +6 −7 go.sum
12 changes: 11 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
version: 2

updates:
- package-ecosystem: gomod
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
ignore:
- dependency-name: "*"
update-types:
- "version-update:semver-minor"
- "version-update:semver-patch"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
42 changes: 31 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -3,35 +3,55 @@ name: CI
on:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]

env:
GO_VERSION: ^1.22
GOLANGCI_LINT_VERSION: v1.57.2

permissions:
contents: read

jobs:
go_install:
if: ${{ !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- uses: rlespinasse/github-slug-action@v4
- uses: actions/setup-go@v4
- uses: rlespinasse/github-slug-action@v4.4.1
- uses: actions/setup-go@v5
with:
go-version: ^1.21
- run: cd /tmp && go install github.com/Antonboom/errname@${{ env.GITHUB_REF_NAME }} && errname -h
go-version: ${{ env.GO_VERSION }}
- run: cd /tmp && go install github.com/Antonboom/errname@${{ env.version }} && errname -h
env:
version: ${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA || env.GITHUB_REF_SLUG }}

lint:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v4
with:
version: v1.54.0
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --timeout=5m

tests:
test:
permissions:
checks: write # for shogo82148/actions-goveralls to create a new check based on the results
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: ^1.21
- uses: actions/checkout@v3
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v4
- run: go test -coverprofile=coverage.out ./...
- uses: shogo82148/actions-goveralls@v1
with:
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# errname

![Latest release](https://img.shields.io/github/v/release/Antonboom/errname)
[![CI](https://github.com/Antonboom/errname/actions/workflows/ci.yml/badge.svg)](https://github.com/Antonboom/errname/actions/workflows/ci.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/Antonboom/errname)](https://goreportcard.com/report/github.com/Antonboom/errname)
[![Coverage](https://coveralls.io/repos/github/Antonboom/errname/badge.svg?branch=master)](https://coveralls.io/github/Antonboom/errname?branch=master)
@@ -17,7 +18,7 @@ $ errname ./...

## Motivation

[The convention](https://github.com/golang/go/wiki/Errors#naming) states that
[The convention](https://go.dev/wiki/Errors#naming) states that
> Error types end in "Error" and error variables start with "Err" or "err".
This can be found in the standard Go library:
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@ module github.com/Antonboom/errname

go 1.20

require golang.org/x/tools v0.20.0

require (
golang.org/x/sys v0.11.0 // indirect
golang.org/x/tools v0.12.0
golang.org/x/mod v0.17.0 // indirect
golang.org/x/sync v0.7.0 // indirect
)

require golang.org/x/mod v0.12.0 // indirect
13 changes: 6 additions & 7 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss=
golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM=
golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA=
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY=
golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg=