Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push]
name: ci

env:
go-version: 1.23.x
go-version: 1.25.x
task-version: v3.40.0

jobs:
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased] - YYYY-MM-DD

## [v0.15.0] - 2026-01-27

### Changed

- Update to Go 1.25.

### Breaking changes

- The packages `sets`, `retry`, `github` have been removed, following the deprecation notice in v0.14.0.
This does not impact the users of the cogito Concourse resource.
It impacts only code using these packages directly. Such code should switch to https://github.com/Pix4D/go-kit, which contains the same packages (drop-in replacement).

## [v0.14.0] - 2026-01-26

### Deprecated
Expand Down Expand Up @@ -328,3 +342,5 @@ This release allows to use cogito for the vast majority of chat notifications wh
[v0.12.0]: https://github.com/Pix4D/cogito/releases/tag/v0.12.0
[v0.12.1]: https://github.com/Pix4D/cogito/releases/tag/v0.12.1
[v0.13.0]: https://github.com/Pix4D/cogito/releases/tag/v0.13.0
[v0.14.0]: https://github.com/Pix4D/cogito/releases/tag/v0.14.0
[v0.15.0]: https://github.com/Pix4D/cogito/releases/tag/v0.15.0
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ In case of doubts about how to tackle testing something, feel free to ask.

## Required

* Go, version >= 1.23
* Docker, version >= 20
* [Task], version >= 3.40
* Go, version >= 1.25
* Docker, version >= 28
* [Task], version >= 3.46

## Optional

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23-alpine AS builder
FROM golang:1.25-alpine AS builder

ARG BUILD_INFO

Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ vars:
}
#
GOLANGCI_VERSION: v1.62.2
GOTESTSUM_VERSION: v1.12.0
GOTESTSUM_VERSION: v1.13.0

tasks:

Expand Down
2 changes: 1 addition & 1 deletion cmd/cogito/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"path"

"github.com/Pix4D/cogito/cogito"
"github.com/Pix4D/cogito/sets"
"github.com/Pix4D/go-kit/sets"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cogito/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
"gotest.tools/v3/assert/cmp"

"github.com/Pix4D/cogito/cogito"
"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/googlechat"
"github.com/Pix4D/cogito/testhelp"
"github.com/Pix4D/go-kit/github"
)

func TestRunCheckSuccess(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cogito/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"gotest.tools/v3/assert"

"github.com/Pix4D/cogito/cogito"
"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/testhelp"
"github.com/Pix4D/go-kit/github"
)

func TestCheckSuccess(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cogito/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"gotest.tools/v3/assert"

"github.com/Pix4D/cogito/cogito"
"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/testhelp"
"github.com/Pix4D/go-kit/github"
)

func TestGetSuccess(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cogito/ghcommitsink.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net/http"
"time"

"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/retry"
"github.com/Pix4D/go-kit/github"
"github.com/Pix4D/go-kit/retry"
)

const (
Expand Down
5 changes: 2 additions & 3 deletions cogito/ghcommitsink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"gotest.tools/v3/assert"

"github.com/Pix4D/cogito/cogito"
"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/testhelp"
"github.com/Pix4D/go-kit/github"
)

func TestSinkGitHubCommitStatusSendSuccess(t *testing.T) {
Expand Down Expand Up @@ -74,8 +74,7 @@ func TestSinkGitHubCommitStatusSendGhAppSuccess(t *testing.T) {
gitHubSpyURL, err := url.Parse(ts.URL)
assert.NilError(t, err, "error parsing SpyHttpServer URL: %s", err)

privateKey, err := testhelp.GeneratePrivateKey(t, 2048)
assert.NilError(t, err)
privateKey := testhelp.GeneratePrivateKey(t, 2048)

sink := cogito.GitHubCommitStatusSink{
Log: testhelp.MakeTestLog(),
Expand Down
4 changes: 2 additions & 2 deletions cogito/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"regexp"
"strings"

"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/sets"
"github.com/Pix4D/go-kit/github"
"github.com/Pix4D/go-kit/sets"
)

var hostnameRegexp = regexp.MustCompile(`^(?P<host>[a-zA-Z0-9.-]+)(?::(?P<port>\d+))?$`)
Expand Down
2 changes: 1 addition & 1 deletion cogito/protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"gotest.tools/v3/assert/cmp"

"github.com/Pix4D/cogito/cogito"
"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/testhelp"
"github.com/Pix4D/go-kit/github"
)

func TestSourceValidationSuccess(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cogito/put_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"gotest.tools/v3/assert"

"github.com/Pix4D/cogito/cogito"
"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/testhelp"
"github.com/Pix4D/go-kit/github"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cogito/putter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

"github.com/sasbury/mini"

"github.com/Pix4D/cogito/github"
"github.com/Pix4D/cogito/sets"
"github.com/Pix4D/go-kit/github"
"github.com/Pix4D/go-kit/sets"
)

// ProdPutter is an implementation of a [Putter] for the Cogito resource.
Expand Down
Loading
Loading