From 94387dbc25e350b56f3ba1c63145ff2ed4c3f43b Mon Sep 17 00:00:00 2001 From: edef Date: Mon, 3 Aug 2020 19:28:16 +0000 Subject: chore: simplify buildGo expressions This removes redundant `map (p: p.gopkg)` expressions. Change-Id: If25d603c27d63ae011f396caf5d26cdfdb8c28d5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1625 Reviewed-by: tazjin Tested-by: BuildkiteCI --- third_party/gopkgs/github.com/hashicorp/golang-lru/default.nix | 2 +- third_party/gopkgs/github.com/jbenet/go-context/default.nix | 2 +- third_party/gopkgs/github.com/src-d/gcfg/default.nix | 2 +- third_party/gopkgs/github.com/xanzy/ssh-agent/default.nix | 2 +- third_party/gopkgs/go.opencensus.io/default.nix | 2 +- third_party/gopkgs/golang.org/x/oauth2/default.nix | 2 +- third_party/gopkgs/google.golang.org/api/default.nix | 2 +- third_party/gopkgs/google.golang.org/grpc/default.nix | 2 +- third_party/gopkgs/googlemaps.github.io/maps.nix | 2 +- third_party/gopkgs/gopkg.in/src-d/go-billy/default.nix | 2 +- third_party/gopkgs/gopkg.in/src-d/go-git/default.nix | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) (limited to 'third_party') diff --git a/third_party/gopkgs/github.com/hashicorp/golang-lru/default.nix b/third_party/gopkgs/github.com/hashicorp/golang-lru/default.nix index 4e8073f93a2f..19bbcf0d82e9 100644 --- a/third_party/gopkgs/github.com/hashicorp/golang-lru/default.nix +++ b/third_party/gopkgs/github.com/hashicorp/golang-lru/default.nix @@ -7,7 +7,7 @@ depot.buildGo.external { rev = "7f827b33c0f158ec5dfbba01bb0b14a4541fd81d"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."golang.org".x.net.context.ctxhttp gopkgs."cloud.google.com".go.compute.metadata ]; diff --git a/third_party/gopkgs/github.com/jbenet/go-context/default.nix b/third_party/gopkgs/github.com/jbenet/go-context/default.nix index 4092f8ecff24..8b3fdc891c7f 100644 --- a/third_party/gopkgs/github.com/jbenet/go-context/default.nix +++ b/third_party/gopkgs/github.com/jbenet/go-context/default.nix @@ -10,7 +10,7 @@ depot.buildGo.external { sha256 = "0q91f5549n81w3z5927n4a1mdh220bdmgl42zi3h992dcc4ls0sl"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."golang.org".x.net.context ]; } diff --git a/third_party/gopkgs/github.com/src-d/gcfg/default.nix b/third_party/gopkgs/github.com/src-d/gcfg/default.nix index 2906063428de..ed51f454715b 100644 --- a/third_party/gopkgs/github.com/src-d/gcfg/default.nix +++ b/third_party/gopkgs/github.com/src-d/gcfg/default.nix @@ -10,7 +10,7 @@ depot.buildGo.external { sha256 = "044j95skmyrwjw5fwjk6ka32rjgsg0ar0mfp9np19sh1acwv4x4r"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."gopkg.in".warnings ]; } diff --git a/third_party/gopkgs/github.com/xanzy/ssh-agent/default.nix b/third_party/gopkgs/github.com/xanzy/ssh-agent/default.nix index b52165efe39a..834e1f607416 100644 --- a/third_party/gopkgs/github.com/xanzy/ssh-agent/default.nix +++ b/third_party/gopkgs/github.com/xanzy/ssh-agent/default.nix @@ -10,7 +10,7 @@ depot.buildGo.external { sha256 = "1chjlnv5d6svpymxgsr62d992m2xi6jb5lybjc5zn1h3hv1m01av"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."golang.org".x.crypto.ssh.agent ]; } diff --git a/third_party/gopkgs/go.opencensus.io/default.nix b/third_party/gopkgs/go.opencensus.io/default.nix index af9690880fd4..b8962df255b1 100644 --- a/third_party/gopkgs/go.opencensus.io/default.nix +++ b/third_party/gopkgs/go.opencensus.io/default.nix @@ -7,7 +7,7 @@ depot.buildGo.external { rev = "643eada29081047b355cfaa1ceb9bc307a10423c"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."github.com".hashicorp.golang-lru.simplelru gopkgs."github.com".golang.groupcache.lru ]; diff --git a/third_party/gopkgs/golang.org/x/oauth2/default.nix b/third_party/gopkgs/golang.org/x/oauth2/default.nix index 230e62967298..a0e4dac3ef6a 100644 --- a/third_party/gopkgs/golang.org/x/oauth2/default.nix +++ b/third_party/gopkgs/golang.org/x/oauth2/default.nix @@ -7,7 +7,7 @@ depot.buildGo.external { rev = "858c2ad4c8b6c5d10852cb89079f6ca1c7309787"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."golang.org".x.net.context.ctxhttp gopkgs."cloud.google.com".go.compute.metadata ]; diff --git a/third_party/gopkgs/google.golang.org/api/default.nix b/third_party/gopkgs/google.golang.org/api/default.nix index 333b9df1570b..9c94c5890b6f 100644 --- a/third_party/gopkgs/google.golang.org/api/default.nix +++ b/third_party/gopkgs/google.golang.org/api/default.nix @@ -7,7 +7,7 @@ depot.buildGo.external { rev = "8b4e46d953bd748a9ff098644a42389b3d8dab41"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."github.com".googleapis.gax-go.v2 gopkgs."golang.org".x.oauth2.google gopkgs."golang.org".x.oauth2 diff --git a/third_party/gopkgs/google.golang.org/grpc/default.nix b/third_party/gopkgs/google.golang.org/grpc/default.nix index 8b533c9077d2..021f3767faa9 100644 --- a/third_party/gopkgs/google.golang.org/grpc/default.nix +++ b/third_party/gopkgs/google.golang.org/grpc/default.nix @@ -7,7 +7,7 @@ depot.buildGo.external { rev = "085c980048876e2735d4aba8f0d5bca4d7acaaa5"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."golang.org".x.net.trace gopkgs."golang.org".x.net.http2 gopkgs."golang.org".x.net.http2.hpack diff --git a/third_party/gopkgs/googlemaps.github.io/maps.nix b/third_party/gopkgs/googlemaps.github.io/maps.nix index 20db836aa703..b84977b334e8 100644 --- a/third_party/gopkgs/googlemaps.github.io/maps.nix +++ b/third_party/gopkgs/googlemaps.github.io/maps.nix @@ -10,7 +10,7 @@ depot.nix.buildGo.external { sha256 = "1zpl85yd3m417060isdlhxzakqkf4f59jgpz3kcjp2i0mkrskkjs"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."github.com".google.uuid gopkgs."golang.org".x.time.rate ]; diff --git a/third_party/gopkgs/gopkg.in/src-d/go-billy/default.nix b/third_party/gopkgs/gopkg.in/src-d/go-billy/default.nix index 0ed4e343e107..a2737422bfe3 100644 --- a/third_party/gopkgs/gopkg.in/src-d/go-billy/default.nix +++ b/third_party/gopkgs/gopkg.in/src-d/go-billy/default.nix @@ -10,7 +10,7 @@ depot.buildGo.external { sha256 = "1j0pl6ggzmd2lrqj71vmsnl6cqm43145h7yg6sy3j5n7hhd592qv"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."golang.org".x.sys.unix ]; } diff --git a/third_party/gopkgs/gopkg.in/src-d/go-git/default.nix b/third_party/gopkgs/gopkg.in/src-d/go-git/default.nix index a39b7e82b781..5728ad0a420a 100644 --- a/third_party/gopkgs/gopkg.in/src-d/go-git/default.nix +++ b/third_party/gopkgs/gopkg.in/src-d/go-git/default.nix @@ -12,7 +12,7 @@ depot.buildGo.external { sha256 = "08jl4ljrzzil7c3qcl2y1859nhpgw9ixxy1g40ff7kmq989yhs6v"; }; - deps = with depot.third_party; map (p: p.gopkg) [ + deps = with depot.third_party; [ gopkgs."github.com".emirpasic.gods.trees.binaryheap gopkgs."github.com".jbenet.go-context.io gopkgs."github.com".kevinburke.ssh_config -- cgit 1.4.1