From 8314c7117c602cc31b42b5690967096417a2a15b Mon Sep 17 00:00:00 2001 From: Mateusz Hawrus <48822818+nieomylnieja@users.noreply.github.com> Date: Fri, 20 Dec 2024 18:11:39 +0100 Subject: [PATCH] chore: Update Go version to 1.23 (#104) --- .golangci.yml | 1 - Dockerfile | 2 +- devbox.json | 2 +- devbox.lock | 204 ++++++++++++++++++++++------------------------ go.mod | 6 +- go.sum | 4 + internal/cache.go | 2 +- test/Dockerfile | 2 +- 8 files changed, 109 insertions(+), 114 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 0030774..c19c993 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -52,7 +52,6 @@ linters: - bodyclose - errcheck - exhaustive - - exportloopref - gocheckcompilerdirectives - gochecknoinits - gocritic diff --git a/Dockerfile b/Dockerfile index e43d7ed..67ccfcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22-alpine3.18 AS builder +FROM golang:1.23-alpine3.21 AS builder WORKDIR /app diff --git a/devbox.json b/devbox.json index 7cd979d..ebf7bad 100644 --- a/devbox.json +++ b/devbox.json @@ -7,7 +7,7 @@ "gofumpt@latest", "golangci-lint@latest", "gosec@latest", - "go@1.22", + "go@1.23", "gotools@latest" ], "shell": { diff --git a/devbox.lock b/devbox.lock index b157b62..bf77370 100644 --- a/devbox.lock +++ b/devbox.lock @@ -1,153 +1,151 @@ { "lockfile_version": "1", "packages": { - "go@1.22": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#go", + "go@1.23": { + "last_modified": "2024-11-28T07:51:56Z", + "resolved": "github:NixOS/nixpkgs/226216574ada4c3ecefcbbec41f39ce4655f78ef#go", "source": "devbox-search", - "version": "1.22.2", + "version": "1.23.3", "systems": { "aarch64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/460vdyz0ghxh8n5ibq3fgc3s63is68cd-go-1.22.2", + "path": "/nix/store/qrj2wp6vzfpjfrrlcmr22818zg83fb73-go-1.23.3", "default": true } ], - "store_path": "/nix/store/460vdyz0ghxh8n5ibq3fgc3s63is68cd-go-1.22.2" + "store_path": "/nix/store/qrj2wp6vzfpjfrrlcmr22818zg83fb73-go-1.23.3" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/c732580an83by9405c5j2fmn04hp6ry6-go-1.22.2", + "path": "/nix/store/dm66qyl19skrwcmk4rb9xcs64xc1d071-go-1.23.3", "default": true } ], - "store_path": "/nix/store/c732580an83by9405c5j2fmn04hp6ry6-go-1.22.2" + "store_path": "/nix/store/dm66qyl19skrwcmk4rb9xcs64xc1d071-go-1.23.3" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/9cim6f30wrzdbiaw8wa45kvffns73dgz-go-1.22.2", + "path": "/nix/store/alkrwr7w62qp3160q0azcvnyn0184hw3-go-1.23.3", "default": true } ], - "store_path": "/nix/store/9cim6f30wrzdbiaw8wa45kvffns73dgz-go-1.22.2" + "store_path": "/nix/store/alkrwr7w62qp3160q0azcvnyn0184hw3-go-1.23.3" }, "x86_64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/6bvndddvxaypc42x6x4ari20gv3vfdgd-go-1.22.2", + "path": "/nix/store/bavnchxi7v6xs077jxv7fl5rrqc3y87w-go-1.23.3", "default": true } ], - "store_path": "/nix/store/6bvndddvxaypc42x6x4ari20gv3vfdgd-go-1.22.2" + "store_path": "/nix/store/bavnchxi7v6xs077jxv7fl5rrqc3y87w-go-1.23.3" } } }, "gofumpt@latest": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#gofumpt", + "last_modified": "2024-11-28T07:51:56Z", + "resolved": "github:NixOS/nixpkgs/226216574ada4c3ecefcbbec41f39ce4655f78ef#gofumpt", "source": "devbox-search", - "version": "0.6.0", + "version": "0.7.0", "systems": { "aarch64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/ibinwhk2bw2b4i82c2b0w780m12619h3-gofumpt-0.6.0", + "path": "/nix/store/av1ndkdbzkpkf5yla9akwv5jr4c1afkx-gofumpt-0.7.0", "default": true } ], - "store_path": "/nix/store/ibinwhk2bw2b4i82c2b0w780m12619h3-gofumpt-0.6.0" + "store_path": "/nix/store/av1ndkdbzkpkf5yla9akwv5jr4c1afkx-gofumpt-0.7.0" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/6jl9sknacabj9pnv0g4rf62adklqjz3s-gofumpt-0.6.0", + "path": "/nix/store/2q8pb1gq26r7ajgp8z636qfn75hfqqxv-gofumpt-0.7.0", "default": true } ], - "store_path": "/nix/store/6jl9sknacabj9pnv0g4rf62adklqjz3s-gofumpt-0.6.0" + "store_path": "/nix/store/2q8pb1gq26r7ajgp8z636qfn75hfqqxv-gofumpt-0.7.0" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/d6sbcby89bp6j81hmvbhrhdp5v75kx1v-gofumpt-0.6.0", + "path": "/nix/store/dn8g16y7drgbfy8ifwwjm0d3mqsmkam1-gofumpt-0.7.0", "default": true } ], - "store_path": "/nix/store/d6sbcby89bp6j81hmvbhrhdp5v75kx1v-gofumpt-0.6.0" + "store_path": "/nix/store/dn8g16y7drgbfy8ifwwjm0d3mqsmkam1-gofumpt-0.7.0" }, "x86_64-linux": { "outputs": [ { - "name": "out", - "path": "/nix/store/h43q3mrljv95b5a72p32j9cyjrmh8y5d-gofumpt-0.6.0", + "path": "/nix/store/pc2yyx3jfzmzqiwr705dbgi7dgj1xzdn-gofumpt-0.7.0", "default": true } ], - "store_path": "/nix/store/h43q3mrljv95b5a72p32j9cyjrmh8y5d-gofumpt-0.6.0" + "store_path": "/nix/store/pc2yyx3jfzmzqiwr705dbgi7dgj1xzdn-gofumpt-0.7.0" } } }, "golangci-lint@latest": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#golangci-lint", + "last_modified": "2024-11-28T07:51:56Z", + "resolved": "github:NixOS/nixpkgs/226216574ada4c3ecefcbbec41f39ce4655f78ef#golangci-lint", "source": "devbox-search", - "version": "1.58.1", + "version": "1.62.2", "systems": { "aarch64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/bydzzbi737n0yz9rnxn22wdsjxkwv1k4-golangci-lint-1.58.1", + "path": "/nix/store/yp07jnqgrbnvdibqz1m2i1fgj30vhd2b-golangci-lint-1.62.2", "default": true } ], - "store_path": "/nix/store/bydzzbi737n0yz9rnxn22wdsjxkwv1k4-golangci-lint-1.58.1" + "store_path": "/nix/store/yp07jnqgrbnvdibqz1m2i1fgj30vhd2b-golangci-lint-1.62.2" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/fmps18b6vl515cl6qbpifhrz3xy4mj2w-golangci-lint-1.58.1", + "path": "/nix/store/yhbwyqm5j5f4vkn24gn1vrawrr3s5psa-golangci-lint-1.62.2", "default": true } ], - "store_path": "/nix/store/fmps18b6vl515cl6qbpifhrz3xy4mj2w-golangci-lint-1.58.1" + "store_path": "/nix/store/yhbwyqm5j5f4vkn24gn1vrawrr3s5psa-golangci-lint-1.62.2" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/fqs3ara0li6dayia401gsl24g4hz6zvh-golangci-lint-1.58.1", + "path": "/nix/store/jprm9rxb82f25jh0vgyvzi6s9aw34dys-golangci-lint-1.62.2", "default": true } ], - "store_path": "/nix/store/fqs3ara0li6dayia401gsl24g4hz6zvh-golangci-lint-1.58.1" + "store_path": "/nix/store/jprm9rxb82f25jh0vgyvzi6s9aw34dys-golangci-lint-1.62.2" }, "x86_64-linux": { "outputs": [ { - "name": "out", - "path": "/nix/store/1sl15s73cvimib3asgbqsbfrccq0z7cw-golangci-lint-1.58.1", + "path": "/nix/store/gr55w2x6wrzdvhhbzm4wc28cs4k7g7vr-golangci-lint-1.62.2", "default": true } ], - "store_path": "/nix/store/1sl15s73cvimib3asgbqsbfrccq0z7cw-golangci-lint-1.58.1" + "store_path": "/nix/store/gr55w2x6wrzdvhhbzm4wc28cs4k7g7vr-golangci-lint-1.62.2" } } }, "golines@latest": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#golines", + "last_modified": "2024-11-28T07:51:56Z", + "resolved": "github:NixOS/nixpkgs/226216574ada4c3ecefcbbec41f39ce4655f78ef#golines", "source": "devbox-search", "version": "0.12.2", "systems": { @@ -155,239 +153,234 @@ "outputs": [ { "name": "out", - "path": "/nix/store/cmpb524hb7f511x0kqlcvv2n6nbydp5r-golines-0.12.2", + "path": "/nix/store/zx8pqm2h46qp2yr2mvqdnqp6lwc7zj2k-golines-0.12.2", "default": true } ], - "store_path": "/nix/store/cmpb524hb7f511x0kqlcvv2n6nbydp5r-golines-0.12.2" + "store_path": "/nix/store/zx8pqm2h46qp2yr2mvqdnqp6lwc7zj2k-golines-0.12.2" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/5mkhh6pqskcrwrk4n0ij9bqg4sbnhzim-golines-0.12.2", + "path": "/nix/store/8wfh0ix8wxq48rz5sphwj5v0jjvw7i1s-golines-0.12.2", "default": true } ], - "store_path": "/nix/store/5mkhh6pqskcrwrk4n0ij9bqg4sbnhzim-golines-0.12.2" + "store_path": "/nix/store/8wfh0ix8wxq48rz5sphwj5v0jjvw7i1s-golines-0.12.2" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/1fbyc0x8773jxy1bbhadn6p9hrs4s06p-golines-0.12.2", + "path": "/nix/store/y3iz8aqdfsb55l32pb5xiw4qvrvh1a3h-golines-0.12.2", "default": true } ], - "store_path": "/nix/store/1fbyc0x8773jxy1bbhadn6p9hrs4s06p-golines-0.12.2" + "store_path": "/nix/store/y3iz8aqdfsb55l32pb5xiw4qvrvh1a3h-golines-0.12.2" }, "x86_64-linux": { "outputs": [ { - "name": "out", - "path": "/nix/store/kjsc50imaqvxhs226skh1q3nl5qjywaq-golines-0.12.2", + "path": "/nix/store/4l4mzrn3pfj5xk6d7w7xz9a7ndjfq8yv-golines-0.12.2", "default": true } ], - "store_path": "/nix/store/kjsc50imaqvxhs226skh1q3nl5qjywaq-golines-0.12.2" + "store_path": "/nix/store/4l4mzrn3pfj5xk6d7w7xz9a7ndjfq8yv-golines-0.12.2" } } }, "gosec@latest": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#gosec", + "last_modified": "2024-12-03T12:40:06Z", + "resolved": "github:NixOS/nixpkgs/566e53c2ad750c84f6d31f9ccb9d00f823165550#gosec", "source": "devbox-search", - "version": "2.19.0", + "version": "2.21.4", "systems": { "aarch64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/dfiq2k5masmar0wza1gs6b09g0d6xckn-gosec-2.19.0", + "path": "/nix/store/4rghdvijzsw2i0b8rmh92j737pbb6z58-gosec-2.21.4", "default": true } ], - "store_path": "/nix/store/dfiq2k5masmar0wza1gs6b09g0d6xckn-gosec-2.19.0" + "store_path": "/nix/store/4rghdvijzsw2i0b8rmh92j737pbb6z58-gosec-2.21.4" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/6c0hr6q7vnvw3b48x3l8v7q4zfwvsssb-gosec-2.19.0", + "path": "/nix/store/7dk6jyqz81qxz205kf8xi04xxij5g8qp-gosec-2.21.4", "default": true } ], - "store_path": "/nix/store/6c0hr6q7vnvw3b48x3l8v7q4zfwvsssb-gosec-2.19.0" + "store_path": "/nix/store/7dk6jyqz81qxz205kf8xi04xxij5g8qp-gosec-2.21.4" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/xafwmzwjj7hsysj81907x2f201b5iwh7-gosec-2.19.0", + "path": "/nix/store/i9g4dfalr3p9mpdahrbj1l8bk8r1qbhv-gosec-2.21.4", "default": true } ], - "store_path": "/nix/store/xafwmzwjj7hsysj81907x2f201b5iwh7-gosec-2.19.0" + "store_path": "/nix/store/i9g4dfalr3p9mpdahrbj1l8bk8r1qbhv-gosec-2.21.4" }, "x86_64-linux": { "outputs": [ { - "name": "out", - "path": "/nix/store/4jsvpk1gyp40jcpcnfy667yain6ih0al-gosec-2.19.0", + "path": "/nix/store/f8iypn7nbqy2zrjjv6kdi45vpsrnb85a-gosec-2.21.4", "default": true } ], - "store_path": "/nix/store/4jsvpk1gyp40jcpcnfy667yain6ih0al-gosec-2.19.0" + "store_path": "/nix/store/f8iypn7nbqy2zrjjv6kdi45vpsrnb85a-gosec-2.21.4" } } }, "gotools@latest": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#gotools", + "last_modified": "2024-12-03T12:40:06Z", + "resolved": "github:NixOS/nixpkgs/566e53c2ad750c84f6d31f9ccb9d00f823165550#gotools", "source": "devbox-search", - "version": "0.18.0", + "version": "0.25.0", "systems": { "aarch64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/i90kx57qmzqx8yhrr2aw7l7pinyjikpd-gotools-0.18.0", + "path": "/nix/store/gln9g7av683v32vx5kvdgcf1f3vfxf5f-gotools-0.25.0", "default": true } ], - "store_path": "/nix/store/i90kx57qmzqx8yhrr2aw7l7pinyjikpd-gotools-0.18.0" + "store_path": "/nix/store/gln9g7av683v32vx5kvdgcf1f3vfxf5f-gotools-0.25.0" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/6y77lsv0fissa4sy1ymxrkvbk156hpf0-gotools-0.18.0", + "path": "/nix/store/vidysp1mb5wzp40w46c2hpkbifq4xnrs-gotools-0.25.0", "default": true } ], - "store_path": "/nix/store/6y77lsv0fissa4sy1ymxrkvbk156hpf0-gotools-0.18.0" + "store_path": "/nix/store/vidysp1mb5wzp40w46c2hpkbifq4xnrs-gotools-0.25.0" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/fk2c6gyslrf13yikhlg8krw61mabs7w6-gotools-0.18.0", + "path": "/nix/store/kp0mcaa3k26b4jmqq4mj97d7ny4mwx47-gotools-0.25.0", "default": true } ], - "store_path": "/nix/store/fk2c6gyslrf13yikhlg8krw61mabs7w6-gotools-0.18.0" + "store_path": "/nix/store/kp0mcaa3k26b4jmqq4mj97d7ny4mwx47-gotools-0.25.0" }, "x86_64-linux": { "outputs": [ { - "name": "out", - "path": "/nix/store/mxr26sym3dc7lx1vna699ls5awms4z10-gotools-0.18.0", + "path": "/nix/store/vl260wd47xbndfaz3w3r4128hmip89mg-gotools-0.25.0", "default": true } ], - "store_path": "/nix/store/mxr26sym3dc7lx1vna699ls5awms4z10-gotools-0.18.0" + "store_path": "/nix/store/vl260wd47xbndfaz3w3r4128hmip89mg-gotools-0.25.0" } } }, "govulncheck@latest": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#govulncheck", + "last_modified": "2024-12-03T12:40:06Z", + "resolved": "github:NixOS/nixpkgs/566e53c2ad750c84f6d31f9ccb9d00f823165550#govulncheck", "source": "devbox-search", - "version": "1.1.0", + "version": "1.1.3", "systems": { "aarch64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/pd3if62b0a23pm417pdl1fzh825z853w-govulncheck-1.1.0", + "path": "/nix/store/ma842dqkk1p8zvsnvg4131ky9fhnswvv-govulncheck-1.1.3", "default": true } ], - "store_path": "/nix/store/pd3if62b0a23pm417pdl1fzh825z853w-govulncheck-1.1.0" + "store_path": "/nix/store/ma842dqkk1p8zvsnvg4131ky9fhnswvv-govulncheck-1.1.3" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/b2isww1wbvz2g2ml2q5sfkadx17i3bxy-govulncheck-1.1.0", + "path": "/nix/store/qgkxavhpds9358rpmm0k18fkknzpml2z-govulncheck-1.1.3", "default": true } ], - "store_path": "/nix/store/b2isww1wbvz2g2ml2q5sfkadx17i3bxy-govulncheck-1.1.0" + "store_path": "/nix/store/qgkxavhpds9358rpmm0k18fkknzpml2z-govulncheck-1.1.3" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/7j6hpj4ldkhm8g4r8p0bq3n798sr8f3x-govulncheck-1.1.0", + "path": "/nix/store/rx8rmjkcgm5y40ywvk0ga431prs4aa5m-govulncheck-1.1.3", "default": true } ], - "store_path": "/nix/store/7j6hpj4ldkhm8g4r8p0bq3n798sr8f3x-govulncheck-1.1.0" + "store_path": "/nix/store/rx8rmjkcgm5y40ywvk0ga431prs4aa5m-govulncheck-1.1.3" }, "x86_64-linux": { "outputs": [ { - "name": "out", - "path": "/nix/store/gq2y6nqvxykwby2vg9bhsq1bsxqwv46l-govulncheck-1.1.0", + "path": "/nix/store/ldwj78kj861i0s85v4sdb99c5ixpdv56-govulncheck-1.1.3", "default": true } ], - "store_path": "/nix/store/gq2y6nqvxykwby2vg9bhsq1bsxqwv46l-govulncheck-1.1.0" + "store_path": "/nix/store/ldwj78kj861i0s85v4sdb99c5ixpdv56-govulncheck-1.1.3" } } }, "mockgen@latest": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#mockgen", + "last_modified": "2024-11-28T07:51:56Z", + "resolved": "github:NixOS/nixpkgs/226216574ada4c3ecefcbbec41f39ce4655f78ef#mockgen", "source": "devbox-search", - "version": "0.4.0", + "version": "0.5.0", "systems": { "aarch64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/w2gk19gal3czasap2afp9sy9g9a246nb-mockgen-0.4.0", + "path": "/nix/store/anb1b6lm8pqi0z2d51x61kf252pd3glz-mockgen-0.5.0", "default": true } ], - "store_path": "/nix/store/w2gk19gal3czasap2afp9sy9g9a246nb-mockgen-0.4.0" + "store_path": "/nix/store/anb1b6lm8pqi0z2d51x61kf252pd3glz-mockgen-0.5.0" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/gn0vq6x4h834gihqbggq2yix2lw91n30-mockgen-0.4.0", + "path": "/nix/store/c5vwyb119ppfcfwknf2a24w3bmiwrmys-mockgen-0.5.0", "default": true } ], - "store_path": "/nix/store/gn0vq6x4h834gihqbggq2yix2lw91n30-mockgen-0.4.0" + "store_path": "/nix/store/c5vwyb119ppfcfwknf2a24w3bmiwrmys-mockgen-0.5.0" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/7b2qhyc38y1i5760rwv11xk21g8bsrz9-mockgen-0.4.0", + "path": "/nix/store/k5hbsxcp402l1gih2s6cxy1fkfqcl1l1-mockgen-0.5.0", "default": true } ], - "store_path": "/nix/store/7b2qhyc38y1i5760rwv11xk21g8bsrz9-mockgen-0.4.0" + "store_path": "/nix/store/k5hbsxcp402l1gih2s6cxy1fkfqcl1l1-mockgen-0.5.0" }, "x86_64-linux": { "outputs": [ { - "name": "out", - "path": "/nix/store/cddy5gvgs2ny66m4da1x32w152qp9ghs-mockgen-0.4.0", + "path": "/nix/store/n49nypkbq8gafvq6qzfci9vlsskc3whi-mockgen-0.5.0", "default": true } ], - "store_path": "/nix/store/cddy5gvgs2ny66m4da1x32w152qp9ghs-mockgen-0.4.0" + "store_path": "/nix/store/n49nypkbq8gafvq6qzfci9vlsskc3whi-mockgen-0.5.0" } } }, "yarn@latest": { - "last_modified": "2024-05-12T16:19:40Z", - "resolved": "github:NixOS/nixpkgs/3281bec7174f679eabf584591e75979a258d8c40#yarn", + "last_modified": "2024-12-03T12:40:06Z", + "resolved": "github:NixOS/nixpkgs/566e53c2ad750c84f6d31f9ccb9d00f823165550#yarn", "source": "devbox-search", "version": "1.22.22", "systems": { @@ -395,41 +388,40 @@ "outputs": [ { "name": "out", - "path": "/nix/store/mab0xq8q3rg2hay9hmjy46cwbx6f02qj-yarn-1.22.22", + "path": "/nix/store/0hmmpszg5wfrr43kvlk2cxjqpll0dh2z-yarn-1.22.22", "default": true } ], - "store_path": "/nix/store/mab0xq8q3rg2hay9hmjy46cwbx6f02qj-yarn-1.22.22" + "store_path": "/nix/store/0hmmpszg5wfrr43kvlk2cxjqpll0dh2z-yarn-1.22.22" }, "aarch64-linux": { "outputs": [ { "name": "out", - "path": "/nix/store/vki75aknvjbnncb14zcgz22j97pkw2ki-yarn-1.22.22", + "path": "/nix/store/9ja1kwgz2qjf86654j8hq8dx7jfmx4y8-yarn-1.22.22", "default": true } ], - "store_path": "/nix/store/vki75aknvjbnncb14zcgz22j97pkw2ki-yarn-1.22.22" + "store_path": "/nix/store/9ja1kwgz2qjf86654j8hq8dx7jfmx4y8-yarn-1.22.22" }, "x86_64-darwin": { "outputs": [ { "name": "out", - "path": "/nix/store/wsq0sxvj6lcc9d2ias1zc5i5sh7dnsk0-yarn-1.22.22", + "path": "/nix/store/xirjnml845m1l4cvfddf3avripb62hvg-yarn-1.22.22", "default": true } ], - "store_path": "/nix/store/wsq0sxvj6lcc9d2ias1zc5i5sh7dnsk0-yarn-1.22.22" + "store_path": "/nix/store/xirjnml845m1l4cvfddf3avripb62hvg-yarn-1.22.22" }, "x86_64-linux": { "outputs": [ { - "name": "out", - "path": "/nix/store/zymyy63y8s15rzd138w76qkd2v1m9nf7-yarn-1.22.22", + "path": "/nix/store/jcgdksj946l5l42c2y9ks2l4g6n74h3f-yarn-1.22.22", "default": true } ], - "store_path": "/nix/store/zymyy63y8s15rzd138w76qkd2v1m9nf7-yarn-1.22.22" + "store_path": "/nix/store/jcgdksj946l5l42c2y9ks2l4g6n74h3f-yarn-1.22.22" } } } diff --git a/go.mod b/go.mod index 871185c..c667516 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/nieomylnieja/go-libyear -go 1.22 +go 1.23 require ( github.com/Masterminds/semver v1.5.0 @@ -8,8 +8,8 @@ require ( github.com/stretchr/testify v1.10.0 github.com/urfave/cli/v2 v2.27.5 go.uber.org/mock v0.5.0 - golang.org/x/mod v0.20.0 - golang.org/x/sync v0.9.0 + golang.org/x/mod v0.22.0 + golang.org/x/sync v0.10.0 ) require ( diff --git a/go.sum b/go.sum index 3200aee..09fbf54 100644 --- a/go.sum +++ b/go.sum @@ -20,8 +20,12 @@ go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= +golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ= golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/internal/cache.go b/internal/cache.go index 3bc724d..e67f46b 100644 --- a/internal/cache.go +++ b/internal/cache.go @@ -124,7 +124,7 @@ func newFilePersistence(filePath string) (*filePersistence, error) { filePath = filepath.Join(filePath, defaultCacheFileName) } // The function does an os.Stat under the hood anyway, so there's no gain in pre-checking this step. - if err := os.MkdirAll(filepath.Dir(filePath), os.ModePerm); err != nil { + if err := os.MkdirAll(filepath.Dir(filePath), 0o750); err != nil { return nil, err } // #nosec G304 diff --git a/test/Dockerfile b/test/Dockerfile index 011207a..4f32bbe 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22-alpine3.18 AS builder +FROM golang:1.23-alpine3.21 AS builder WORKDIR /src