Skip to content

Commit 06bf932

Browse files
committed
chore: update dependencies and fix new lint issues
1 parent 7a92d87 commit 06bf932

7 files changed

Lines changed: 139 additions & 41 deletions

File tree

.nix/repo/data.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{
2828
path = "double/internal/generator/";
2929
linters = ["gosec" "goconst"];
30-
text = "Potential file inclusion via variable|make it a constant";
30+
text = "Command injection via taint analysis|Subprocess launched with variable|Path traversal via taint analysis|Potential file inclusion via variable|make it a constant";
3131
}
3232
];
3333
};

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.6.2] - 2026-03-04
9+
10+
### Changed
11+
12+
- Move nix/ to .nix/
13+
- Update dependencies and fix new lint issues
14+
- Update dependencies and fix new lint issues
15+
16+
### Fixed
17+
18+
- Update and protect variable name generator to deal with huge number of variables
19+
20+
## [1.6.1] - 2025-08-24
21+
22+
### Changed
23+
24+
- Replace multierr with errors.Join
25+
26+
### Fixed
27+
28+
- Fix call Elem on non-initialized Pointers
29+
30+
## [1.6.0] - 2025-08-24
31+
32+
### Changed
33+
34+
- Improve workflows
35+
- Handle embedded fields and improve env name sanitization
36+
- Update dependencies and fix new lint rules
37+
38+
### Fixed
39+
40+
- Fix typo in error message
41+
- Change variable name so error receive right values
42+
43+
## [0.0.10] - 2020-05-12
44+

cfg/source/flag/flag_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ func Test_reflectSetValue(t *testing.T) {
257257
"type mismatch": {
258258
setup: func() (reflect.Value, reflect.Value) {
259259
var dst int
260+
260261
src := "string"
261262
return reflect.ValueOf(&dst).Elem(), reflect.ValueOf(src)
262263
},
@@ -265,6 +266,7 @@ func Test_reflectSetValue(t *testing.T) {
265266
"can set": {
266267
setup: func() (reflect.Value, reflect.Value) {
267268
var dst int
269+
268270
src := 42
269271
return reflect.ValueOf(&dst).Elem(), reflect.ValueOf(src)
270272
},

flake.lock

Lines changed: 77 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
inputs = {
3-
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
44
synergy = {
55
url = "github:krostar/synergy";
66
inputs.nixpkgs.follows = "nixpkgs";

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.24.4
44

55
require (
66
github.com/google/go-cmp v0.7.0
7-
github.com/krostar/test v1.0.1
7+
github.com/krostar/test v1.0.3
88
github.com/spf13/cobra v1.10.2
99
github.com/spf13/pflag v1.0.10
1010
go.uber.org/dig v1.19.0
@@ -13,7 +13,7 @@ require (
1313

1414
require (
1515
github.com/inconshreveable/mousetrap v1.1.0 // indirect
16-
golang.org/x/mod v0.30.0 // indirect
17-
golang.org/x/sync v0.18.0 // indirect
18-
golang.org/x/tools v0.39.0 // indirect
16+
golang.org/x/mod v0.33.0 // indirect
17+
golang.org/x/sync v0.19.0 // indirect
18+
golang.org/x/tools v0.42.0 // indirect
1919
)

go.sum

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2
77
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
88
github.com/krostar/test v1.0.1 h1:M7QQnwrn8+TK9yK7aKt8bMwXx6Yw/eVUbl8pSdxNrnA=
99
github.com/krostar/test v1.0.1/go.mod h1:+n7BD6ub8AvINMbuFJ8oZLuHwT4KZRvCLHssthE82Y0=
10+
github.com/krostar/test v1.0.2 h1:wv6Nm7oStp4mD/0MN9y5bPDFMLvDXRNAkAhMTwZYUNc=
11+
github.com/krostar/test v1.0.2/go.mod h1:ReRIMmWrFh01ex/fVxxcEgeEM7FKxPrWJCZPGOdvpgg=
12+
github.com/krostar/test v1.0.3 h1:uBr49QvuYrrmBme4ZDA7mBRN/EK/4eeT8O8JEKwZgAc=
13+
github.com/krostar/test v1.0.3/go.mod h1:ReRIMmWrFh01ex/fVxxcEgeEM7FKxPrWJCZPGOdvpgg=
1014
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1115
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1216
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
@@ -22,10 +26,16 @@ go.uber.org/dig v1.19.0/go.mod h1:Us0rSJiThwCv2GteUN0Q7OKvU7n5J4dxZ9JKUXozFdE=
2226
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
2327
golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk=
2428
golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc=
29+
golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8=
30+
golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w=
2531
golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
2632
golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
33+
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
34+
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
2735
golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ=
2836
golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ=
37+
golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k=
38+
golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0=
2939
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
3040
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3141
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

0 commit comments

Comments
 (0)