diff --git a/Makefile b/Makefile index 496876e..088ce90 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,8 @@ test: # Run tests with coverage test-coverage: - go test -v -coverprofile=coverage.out ./... - go tool cover -html=coverage.out -o coverage.html + GOTOOLCHAIN=go1.25.1 go test -v -coverprofile=coverage.out ./... + GOTOOLCHAIN=go1.25.1 go tool cover -html=coverage.out -o coverage.html # Build the CLI build: diff --git a/devbox.json b/devbox.json new file mode 100644 index 0000000..5d7f873 --- /dev/null +++ b/devbox.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json", + "packages": [ + "golangci-lint@latest", + "go@1.25" + ], + "shell": { + "init_hook": [ + "echo 'Welcome to devbox!' > /dev/null" + ], + "scripts": { + "test": [ + "echo \"Error: no test specified\" && exit 1" + ] + } + } +} diff --git a/devbox.lock b/devbox.lock new file mode 100644 index 0000000..f3049bd --- /dev/null +++ b/devbox.lock @@ -0,0 +1,105 @@ +{ + "lockfile_version": "1", + "packages": { + "github:NixOS/nixpkgs/nixpkgs-unstable": { + "last_modified": "2025-10-07T08:41:47Z", + "resolved": "github:NixOS/nixpkgs/bce5fe2bb998488d8e7e7856315f90496723793c?lastModified=1759826507&narHash=sha256-vwXL9H5zDHEQA0oFpww2one0%2FhkwnPAjc47LRph6d0I%3D" + }, + "go@1.25": { + "last_modified": "2025-08-08T08:05:48Z", + "resolved": "github:NixOS/nixpkgs/a3f3e3f2c983e957af6b07a1db98bafd1f87b7a1#go_1_25", + "source": "devbox-search", + "version": "1.25rc3", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/3h76v26b24dqxhd1i8gzcg8bwzxzmrhl-go-1.25rc3", + "default": true + } + ], + "store_path": "/nix/store/3h76v26b24dqxhd1i8gzcg8bwzxzmrhl-go-1.25rc3" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/1sy3nfyahk3a3pg5x301jx96yxg8sw3y-go-1.25rc3", + "default": true + } + ], + "store_path": "/nix/store/1sy3nfyahk3a3pg5x301jx96yxg8sw3y-go-1.25rc3" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/vh7db8clgyymv47wsddpw908bbf1dikm-go-1.25rc3", + "default": true + } + ], + "store_path": "/nix/store/vh7db8clgyymv47wsddpw908bbf1dikm-go-1.25rc3" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/nbq04hs95dpiwmfnqiky5l4z8azbqj6i-go-1.25rc3", + "default": true + } + ], + "store_path": "/nix/store/nbq04hs95dpiwmfnqiky5l4z8azbqj6i-go-1.25rc3" + } + } + }, + "golangci-lint@latest": { + "last_modified": "2025-09-18T16:33:27Z", + "resolved": "github:NixOS/nixpkgs/f4b140d5b253f5e2a1ff4e5506edbf8267724bde#golangci-lint", + "source": "devbox-search", + "version": "2.4.0", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/2iiw320mwgw7flh47zbz6l62fakrb3dx-golangci-lint-2.4.0", + "default": true + } + ], + "store_path": "/nix/store/2iiw320mwgw7flh47zbz6l62fakrb3dx-golangci-lint-2.4.0" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/hwr3wdhqnlcay07xpgv2wm1mx7k5nkhf-golangci-lint-2.4.0", + "default": true + } + ], + "store_path": "/nix/store/hwr3wdhqnlcay07xpgv2wm1mx7k5nkhf-golangci-lint-2.4.0" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/skcc363l41rm6hjyrhzlfbk3rrwci2lb-golangci-lint-2.4.0", + "default": true + } + ], + "store_path": "/nix/store/skcc363l41rm6hjyrhzlfbk3rrwci2lb-golangci-lint-2.4.0" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/dlz6z4dih7rd6q9dnigvz49npfmv8m52-golangci-lint-2.4.0", + "default": true + } + ], + "store_path": "/nix/store/dlz6z4dih7rd6q9dnigvz49npfmv8m52-golangci-lint-2.4.0" + } + } + } + } +} diff --git a/flake.nix b/flake.nix index 2536eb7..f32815c 100644 --- a/flake.nix +++ b/flake.nix @@ -5,7 +5,7 @@ outputs = inputs: let - goVersion = 25; # Change this to update the whole stack + goVersion = "1_25_1"; # Change this to update the whole stack supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forEachSupportedSystem = f: inputs.nixpkgs.lib.genAttrs supportedSystems (system: f { @@ -17,7 +17,7 @@ in { overlays.default = final: prev: { - go = final."go_1_${toString goVersion}"; + go = final."go_${goVersion}"; }; devShells = forEachSupportedSystem ({ pkgs }: {