Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9bba162
adding manual trigger for testing
scottisloud May 6, 2026
1983154
incrementing version
scottisloud May 6, 2026
4d3fa0f
incrementing right to v6
scottisloud May 6, 2026
ee4e480
incrementing straight to v6
scottisloud May 6, 2026
c08bde5
reverseing step order to handle cache
scottisloud May 6, 2026
4446115
incrementing golangci-lint-action and fixing typo
scottisloud May 6, 2026
454e599
incrementing golangci-lint version
scottisloud May 6, 2026
279d477
fixing version numbner
scottisloud May 6, 2026
7a23b12
reverting golangci-lint version
scottisloud May 6, 2026
8b16ea3
updating checkout version
scottisloud May 6, 2026
99e84b3
adding manual trigger
scottisloud May 6, 2026
f43dd76
adding manual trigger again
scottisloud May 6, 2026
608c1fa
removing unnecessary workflow_dispatch
scottisloud May 6, 2026
9bc1b52
upping other deps
scottisloud May 7, 2026
ebba17a
debug removing branch restrictions
scottisloud May 7, 2026
75ec020
reverting on conditions
scottisloud May 7, 2026
6e75ff0
upping golangci version
scottisloud May 7, 2026
d2e743f
migrating config
scottisloud May 7, 2026
dd05e6d
removing deprecated typecheck linter
scottisloud May 7, 2026
055b0f6
removing another deprecated linter
scottisloud May 7, 2026
1714c54
removing workflow_dispatch used for debug
scottisloud May 7, 2026
3b82445
debug adding workflow_dispatch
scottisloud May 7, 2026
6731322
debug more condition changes
scottisloud May 7, 2026
642f2e8
updating nixpkgs flake input
scottisloud May 7, 2026
2e137e5
disabling error-producing linters to clear new errors
scottisloud May 7, 2026
6cf0e82
reverting debug triggers
scottisloud May 7, 2026
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
8 changes: 4 additions & 4 deletions .github/workflows/check-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check Nix flake
on:
pull_request:
paths:
- '**.nix'
- "**.nix"
- flake.lock
push:
branches:
Expand All @@ -11,9 +11,9 @@ jobs:
check-flake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v5
with:
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ name: Test and Validate
on:
push:
paths-ignore:
- '**.md'
- '.github/ISSUE_TEMPLATE/**'
- "**.md"
- ".github/ISSUE_TEMPLATE/**"
pull_request:
paths-ignore:
- '**.md'
- '.github/ISSUE_TEMPLATE/**'
- "**.md"
- ".github/ISSUE_TEMPLATE/**"

jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6

- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: ^1.18

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Test
run: make test

Expand All @@ -31,17 +31,17 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6

- name: "Set up Go 1.x"
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: 1.19

- name: Check out code
uses: actions/checkout@v3

- name: Lint with golanci-lint
uses: golangci/golangci-lint-action@v3
- name: Lint with golangci-lint
uses: golangci/golangci-lint-action@v9
with:
# version of golangci-lint to use
# Version should stay in sync with version used for local linting (lint job in Makefile).
version: v1.50.1
version: v2.12.2
8 changes: 4 additions & 4 deletions .github/workflows/update-flake-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name: Update flake dependencies
on:
schedule:
- cron: '0 16 * * 5'
- cron: "0 16 * * 5"
workflow_dispatch: # for allowing manual triggers of the workflow
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Update flake.lock and create signed commit with flake.lock changes
env:
GITHUB_TOKEN: ${{ secrets.OP_BOT_TOKEN }}
Expand Down
33 changes: 18 additions & 15 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
version: "2"
linters:
disable-all: true
default: none
enable:
# Defaults:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
# Extra:
- asciicheck
- bidichk
disable:
# Scott L: currently these produce errors that need to be fixed in a seprate PR
- errcheck
- depguard
- goimports
- gofmt
- staticcheck

settings:
depguard:
rules:
main:
deny:
- pkg: math/rand
desc: "please use the safer crypto/rand"

linters-settings:
depguard:
list-type: blacklist
include-go-root: false
packages:
- math/rand
packages-with-error-message:
- math/rand: "please use the safer crypto/rand"
formatters:
enable:
- gofmt
- goimports
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test:

lint:
# Version used should stay in sync with version in CI (.github/workflows/test.yaml).
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.50.1 golangci-lint run
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v2.12.2 golangci-lint run

%/remove-local: beta-notice
$(eval plugin := $(firstword $(subst /, ,$@)))
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading