Merge pull request #263601 from aaronjheng/cue

cue: fix tests

authored by Bruno Bigras and committed by GitHub c679700f f9d4f5f2

+18 -3
+18 -3
pkgs/development/tools/cue/default.nix
··· 1 - { buildGoModule, fetchFromGitHub, lib, installShellFiles, testers, cue }: 1 + { buildGoModule 2 + , fetchFromGitHub 3 + , fetchpatch 4 + , lib 5 + , installShellFiles 6 + , testers 7 + , cue 8 + }: 2 9 3 10 buildGoModule rec { 4 11 pname = "cue"; ··· 11 18 hash = "sha256-1svWb83xbVZIlI9pviCYfQ6Kkp0QRjZwrauL7PPJLts="; 12 19 }; 13 20 21 + vendorHash = "sha256-ku4tPTXdnKau0kqnAAEHDdSF4oAC/6SDkTq8cECOiEk="; 22 + 23 + patches = [ 24 + # Fix tests with go1.21. See https://github.com/cue-lang/cue/issues/2548. 25 + (fetchpatch { 26 + url = "https://github.com/cue-lang/cue/commit/3bf3dbd655284d3628399a83a703f4849b5f9374.patch"; 27 + hash = "sha256-9Zi2mrqB1JTFvadiqWTgzzi1pffZ3gOmTtrDDQWye1Q="; 28 + }) 29 + ]; 30 + 14 31 postPatch = '' 15 32 # Disable script tests 16 33 rm -f cmd/cue/cmd/script_test.go 17 34 ''; 18 - 19 - vendorHash = "sha256-ku4tPTXdnKau0kqnAAEHDdSF4oAC/6SDkTq8cECOiEk="; 20 35 21 36 excludedPackages = [ "internal/ci/updatetxtar" "internal/cmd/embedpkg" "internal/cmd/qgo" "pkg/gen" ]; 22 37