9 Commits

Author SHA1 Message Date
argoyle 0acd857ab5 build(deps): bump github.com/getsentry/sentry-go from 0.23.0 to 0.24.0
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-go/compare/v0.23.0...v0.24.0)
2023-09-06 21:48:33 +02:00
argoyle fbb167a72b build(deps): bump github.com/getsentry/sentry-go from 0.23.0 to 0.24.0
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-go/compare/v0.23.0...v0.24.0)
2023-09-05 12:26:49 +00:00
argoyle eadeac40ae ci: update to Golang 1.21.0 for vulnerabilities 2023-08-30 20:02:27 +02:00
argoyle 63c4a2fa79 ci: update pre-commit versions 2023-08-30 17:59:51 +02:00
argoyle 301ccb018b build(deps): bump github.com/getsentry/sentry-go from 0.22.0 to 0.23.0
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-go/compare/v0.22.0...v0.23.0)
2023-08-02 14:07:31 +00:00
argoyle 8baad27ea5 ci: update to Go 1.20.7 2023-08-02 16:04:04 +02:00
argoyle e4539737b9 build(deps): bump github.com/getsentry/sentry-go from 0.21.0 to 0.22.0
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-go/compare/v0.21.0...v0.22.0)
2023-06-16 12:26:47 +00:00
argoyle cdc64bef35 ci: make releases handle multi-line release notes 2023-06-08 16:17:12 +02:00
argoyle 6cfe80da1f ci: update Go version 2023-06-08 13:58:34 +02:00
6 changed files with 14 additions and 18 deletions
+6 -6
View File
@@ -1,7 +1,7 @@
include: include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml' - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
image: golang:1.20.4 image: golang:1.21.0
stages: stages:
- deps - deps
@@ -42,7 +42,7 @@ test:
vulnerabilities: vulnerabilities:
stage: test stage: test
image: golang:1.20.4 image: golang:1.21.0
script: script:
- go install golang.org/x/vuln/cmd/govulncheck@latest - go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./... - govulncheck ./...
@@ -53,10 +53,10 @@ prepare_release:
before_script: before_script:
- npm install -g conventional-changelog-cli - npm install -g conventional-changelog-cli
script: script:
- echo "DESCRIPTION=$(conventional-changelog -p conventionalcommits)" > variables.env - conventional-changelog -p conventionalcommits > ./release.description
artifacts: artifacts:
reports: paths:
dotenv: variables.env - release.description
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
@@ -70,6 +70,6 @@ release:
- echo "Running release_job for $TAG" - echo "Running release_job for $TAG"
release: release:
tag_name: '$CI_COMMIT_TAG' tag_name: '$CI_COMMIT_TAG'
description: '$DESCRIPTION' description: ./release.description
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
+2 -6
View File
@@ -10,12 +10,8 @@ repos:
args: args:
- --allow-multiple-documents - --allow-multiple-documents
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: markdownlint
- repo: https://gitlab.com/devopshq/gitlab-ci-linter - repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.3 rev: v1.0.5
hooks: hooks:
- id: gitlab-ci-linter - id: gitlab-ci-linter
args: args:
@@ -41,6 +37,6 @@ repos:
- id: go-test - id: go-test
- id: gofumpt - id: gofumpt
- repo: https://github.com/golangci/golangci-lint - repo: https://github.com/golangci/golangci-lint
rev: v1.53.2 rev: v1.54.2
hooks: hooks:
- id: golangci-lint - id: golangci-lint
+1 -1
View File
@@ -4,7 +4,7 @@ go 1.19
require ( require (
github.com/apex/log v1.9.0 github.com/apex/log v1.9.0
github.com/getsentry/sentry-go v0.21.0 github.com/getsentry/sentry-go v0.24.0
github.com/stretchr/testify v1.8.4 github.com/stretchr/testify v1.8.4
gitlab.com/unboundsoftware/apex-mocks v0.2.0 gitlab.com/unboundsoftware/apex-mocks v0.2.0
) )
+2 -2
View File
@@ -10,8 +10,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/getsentry/sentry-go v0.21.0 h1:c9l5F1nPF30JIppulk4veau90PK6Smu3abgVtVQWon4= github.com/getsentry/sentry-go v0.24.0 h1:02b7qEmJ56EHGe9KFgjArjU/vG/aywm7Efgu+iPc01Y=
github.com/getsentry/sentry-go v0.21.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/getsentry/sentry-go v0.24.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY=
github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+2 -2
View File
@@ -17,8 +17,8 @@ var sentryInit = sentry.Init
func SetupSentry(logger log.Interface, releaseName string, args SentryConfig) error { func SetupSentry(logger log.Interface, releaseName string, args SentryConfig) error {
if args.Disabled { if args.Disabled {
logger.Info("Sentry disabled, skipping setup") logger.Info("Sentry disabled, setup using empty options")
return nil return sentryInit(sentry.ClientOptions{})
} }
if args.Environment == "" { if args.Environment == "" {
return fmt.Errorf("no Sentry environment supplied, exiting") return fmt.Errorf("no Sentry environment supplied, exiting")
+1 -1
View File
@@ -34,7 +34,7 @@ func TestSetupSentry(t *testing.T) {
}, },
init: nil, init: nil,
wantErr: assert.NoError, wantErr: assert.NoError,
wantLogged: []string{"info: Sentry disabled, skipping setup"}, wantLogged: []string{"info: Sentry disabled, setup using empty options"},
}, },
{ {
name: "no environment", name: "no environment",