Skip to content

Commit 338eccb

Browse files
authored
feat(urlkey): expose URL cache-key normalization; include maintenance updates (#34)
* update copyright year and author email * refactor internal logic housekeeping * bump Go toolchain to 1.26.1 * update CI Go version and actions/setup-go to v6.3.0 * add gosec suppression note for binary debug response
1 parent 56a31b6 commit 338eccb

64 files changed

Lines changed: 356 additions & 320 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/default.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, windows-latest, macos-latest]
18+
version: [1.25.x, 1.26.x]
1819
runs-on: ${{ matrix.os }}
1920
env:
2021
OUTPUTDIR: coverage
@@ -23,10 +24,9 @@ jobs:
2324
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2425
with:
2526
fetch-depth: 0
26-
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
27+
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
2728
with:
28-
go-version-file: go.mod
29-
cache-dependency-path: go.sum
29+
go-version: ${{ matrix.version }}
3030

3131
- name: Run tests
3232
run: make test

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13-
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
13+
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
1414
with:
15-
go-version-file: go.mod
15+
go-version-file: "go.mod"
1616

1717
# Golangci-lint action is flaky, so we run it manually
1818
- name: Run golangci-lint
1919
shell: bash
2020
run: |
21-
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.2
22-
make lint
21+
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.3
22+
make lint

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ linters:
109109
goheader:
110110
values:
111111
const:
112-
AUTHOR: "Bart Venter <bartventer@proton.me>"
112+
AUTHOR: "Bart Venter <72999113+bartventer@users.noreply.github.com>"
113113
template: |-
114114
Copyright (c) {{ YEAR }} {{ AUTHOR }}
115115

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"--output.text.path=stdout",
1717
"--output.text.print-issued-lines=false",
1818
"--show-stats=false",
19+
"--disable goheader",
1920
"--fix"
2021
],
2122
"editor.detectIndentation": true

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2025 Bart Venter <bartventer@proton.me>
1+
// Copyright (c) 2026 Bart Venter <72999113+bartventer@users.noreply.github.com>
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/bartventer/httpcache
22

33
go 1.25
4+
5+
toolchain go1.26.1

helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2025 Bart Venter <bartventer@proton.me>
1+
// Copyright (c) 2026 Bart Venter <72999113+bartventer@users.noreply.github.com>
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2025 Bart Venter <bartventer@proton.me>
1+
// Copyright (c) 2026 Bart Venter <72999113+bartventer@users.noreply.github.com>
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

internal/cacheabilityevaluator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2025 Bart Venter <bartventer@proton.me>
1+
// Copyright (c) 2026 Bart Venter <72999113+bartventer@users.noreply.github.com>
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

internal/cacheabilityevaluator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2025 Bart Venter <bartventer@proton.me>
1+
// Copyright (c) 2026 Bart Venter <72999113+bartventer@users.noreply.github.com>
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)