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 }: 2 3 buildGoModule rec { 4 pname = "cue"; ··· 11 hash = "sha256-1svWb83xbVZIlI9pviCYfQ6Kkp0QRjZwrauL7PPJLts="; 12 }; 13 14 postPatch = '' 15 # Disable script tests 16 rm -f cmd/cue/cmd/script_test.go 17 ''; 18 - 19 - vendorHash = "sha256-ku4tPTXdnKau0kqnAAEHDdSF4oAC/6SDkTq8cECOiEk="; 20 21 excludedPackages = [ "internal/ci/updatetxtar" "internal/cmd/embedpkg" "internal/cmd/qgo" "pkg/gen" ]; 22
··· 1 + { buildGoModule 2 + , fetchFromGitHub 3 + , fetchpatch 4 + , lib 5 + , installShellFiles 6 + , testers 7 + , cue 8 + }: 9 10 buildGoModule rec { 11 pname = "cue"; ··· 18 hash = "sha256-1svWb83xbVZIlI9pviCYfQ6Kkp0QRjZwrauL7PPJLts="; 19 }; 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 + 31 postPatch = '' 32 # Disable script tests 33 rm -f cmd/cue/cmd/script_test.go 34 ''; 35 36 excludedPackages = [ "internal/ci/updatetxtar" "internal/cmd/embedpkg" "internal/cmd/qgo" "pkg/gen" ]; 37