Skip to content

Org upkeep (.github#1): lint baseline, Go 1.27.1, tool pins, core v0.1.5, JSON logs off a terminal - #33

Merged
CMGS merged 5 commits into
mainfrom
upkeep/github-1
Sep 24, 2026
Merged

CMGS merged 5 commits into
mainfrom
upkeep/github-1

Conversation

@CMGS

@CMGS CMGS commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Implements the per-repo part of cocoonstack/.github#1: revive default rules, nolintlint, Go 1.27.1, the pinned tool versions, projecteru2/core v0.1.5 and JSON log records when stderr is not a terminal (only the sections that apply here).

Commits

  • 374df3b lint: enable revive default rules
  • 66adadb lint: enable nolintlint, drop unused directives
  • 657340a build: go 1.27.1
  • 4bb46a0 deps: projecteru2/core v0.1.5
  • 1679b26 log: JSON records when stderr is not a terminal

Notes

  • log.Setup now sets UseJSON when stderr is not a terminal. vk-cocoon, cocoon-operator, cocoon-webhook and cocoon-net get it by re-pinning cocoon-common after this merges, so merge this one first.
  • core v0.1.5 moves only indirect lines (docker/cli, sentry-go, x/mod, grpc).

JSON logs off a terminal

a demo binary using log.Setup: stderr to a file gives {"level":"info","func":"demo",...}; under a pty the console line keeps its colours.

Gates

Run with GOWORK=off against the pinned golangci-lint v2.13.2 (built with go1.27.1):

fmt-check PASS
lint PASS
asl-linux PASS
asl-darwin PASS
test PASS
build PASS

gofumpt v0.12.0 / goimports v0.50.0 are held until the next golangci-lint release vendors them (see the issue).

@CMGS
CMGS merged commit 6b6188c into main Sep 24, 2026
2 checks passed
@CMGS
CMGS deleted the upkeep/github-1 branch September 24, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant