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
10 changes: 0 additions & 10 deletions .github/dependabot.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"docker:pinDigests"
],
"pre-commit": {
"enabled": true
},
"postUpdateOptions": [
"gomodTidy"
]
}
14 changes: 4 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.21'
- '1.22'

env:
DNS_HOST: ns.example.com
Expand All @@ -38,28 +32,28 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version-file: 'go.mod'

- name: Install Kerberos client
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq libkrb5-dev krb5-user

- name: golangci-lint (gokrb5)
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v9
if: github.event_name == 'pull_request'
with:
only-new-issues: true

- name: golangci-lint (apcera)
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v9
if: github.event_name == 'pull_request'
with:
only-new-issues: true
args: --build-tags apcera

- name: golangci-lint (SSPI)
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v9
if: github.event_name == 'pull_request'
with:
only-new-issues: true
Expand Down
70 changes: 52 additions & 18 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,87 +1,121 @@
---
issues:
exclude-use-default: false
version: "2"
linters:
disable-all: true
default: none
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- containedctx
- contextcheck
#- copyloopvar
- cyclop
- decorder
- dogsled
- dupl
- dupword
- durationcheck
#- err113
- errcheck
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
- exportloopref
- exptostd
- fatcontext
- forbidigo
- forcetypeassert
#- funcorder
- funlen
- gci
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoglobals
- gochecknoinits
- gochecksumtype
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- gofumpt
#- godox
- goheader
- goimports
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
#- gosec
- gosmopolitan
#- govet
- grouper
- iface
- importas
#- inamedparam
- ineffassign
- interfacebloat
#- intrange
- lll
- loggercheck
- maintidx
- makezero
- mirror
- misspell
- musttag
- nakedret
- nestif
- nilerr
- nilnesserr
- nilnil
- nlreturn
- noctx
- nolintlint
#- nonamedreturns
- nosprintfhostport
- paralleltest
#- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- revive
- recvcheck
#- revive
- rowserrcheck
- sloglint
- spancheck
- sqlclosecheck
- staticcheck
- stylecheck
- tagalign
- tagliatelle
- tenv
- testableexamples
#- testifylint
- testpackage
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- usetesting
- wastedassign
- whitespace
- wsl
#- wrapcheck
#- wsl
- zerologlint
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ repos:
hooks:
- id: commitizen
- repo: https://github.com/golangci/golangci-lint
rev: v1.54.1
rev: v2.11.4
hooks:
- id: golangci-lint
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
[![Coverage Status](https://coveralls.io/repos/github/bodgit/tsig/badge.svg?branch=main)](https://coveralls.io/github/bodgit/tsig?branch=main)
[![Go Report Card](https://goreportcard.com/badge/github.com/bodgit/tsig)](https://goreportcard.com/report/github.com/bodgit/tsig)
[![GoDoc](https://godoc.org/github.com/bodgit/tsig?status.svg)](https://godoc.org/github.com/bodgit/tsig)
![Go version](https://img.shields.io/badge/Go-1.22-brightgreen.svg)
![Go version](https://img.shields.io/badge/Go-1.21-brightgreen.svg)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/bodgit/tsig)

# Additional TSIG methods

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/bodgit/tsig

go 1.18
go 1.25

require (
github.com/alexbrainman/sspi v0.0.0-20180613141037-e580b900e9f5
Expand Down
Loading