From a6906cd1a6f85bece54a106ac73a3d71c43066a4 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 9 Jun 2024 00:52:59 +0100 Subject: [PATCH] 3p/tvl/nix/buildGo: drop context to fix newer Nix --- third_party/tvl/nix/buildGo/external/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/tvl/nix/buildGo/external/default.nix b/third_party/tvl/nix/buildGo/external/default.nix index 59a1109db2..05e8c9d162 100644 --- a/third_party/tvl/nix/buildGo/external/default.nix +++ b/third_party/tvl/nix/buildGo/external/default.nix @@ -109,7 +109,7 @@ let analysisOutput = runCommand "${name}-structure.json" { } '' ${analyser}/bin/analyser -path ${path} -source ${src} -tags "${lib.concatStringsSep " " tags}" ${if cgo then "-cgo" else ""} > $out ''; - analysis = fromJSON (readFile analysisOutput); + analysis = fromJSON (builtins.unsafeDiscardStringContext (readFile analysisOutput)); in lib.fix (self: foldl' lib.recursiveUpdate { } ( map (entry: mkset entry.locator (toPackage self src path depMap entry cgodeps cgocflags cgoldflags)) analysis