blob: 0a1252be708049c181153b08623a32596dc9b064 [file] [log] [blame]
Serge Bazanski14cf7502020-05-28 14:29:56 +02001// Copyright 2020 The Monogon Project Authors.
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17package main
18
19func depsCilium(p *planner) {
20 p.collect(
21 "github.com/cilium/cilium", "v1.8.0-rc1",
22 disabledProtoBuild,
23 ).replace(
24 // Cilium forks this library to introduce an API that they need, but
25 // which the upstream rejected. Since this new API does not cause any
26 // backwards incompatibility, we pull in their fork.
27 // See https://github.com/miekg/dns/pull/949#issuecomment-487832458 for
28 // more information about the fork.
29 "github.com/miekg/dns", "github.com/cilium/dns", "8e25ec9a0ff3",
30 ).replace(
31 // Cilium forks this library (a Go Kafka client) to apply the following
32 // patches on top:
33 // - 01ce283: Fix de/serialization of null arrays
34 // - c411825: Correcly check msgSize in ReadResp before discarding.
35 // - 947cc36: Kafka : Cilium panics with error *index out of range
36 // error* on receiving messages of very large size.
37 // serge@ has not found any trace of the Cilium project trying to
38 // upstream this, but the patches seem to be only bugfixes, not
39 // breaking functionality.
40 // However, the fork-off point of the upstream project is fairly old
41 // (commit b5a758db, dated Dec 7, 2017 - pre v1.5.0 of upstream). This
42 // might cause issues in the future when we start to have other
43 // consumers of this library.
44 "github.com/optiopay/kafka", "github.com/cilium/kafka", "01ce283b732b",
45 ).use(
46 "github.com/hashicorp/go-immutable-radix",
47 "github.com/sasha-s/go-deadlock",
48 "github.com/google/gopacket",
49 "github.com/hashicorp/consul/api",
50 "github.com/pborman/uuid",
51 "github.com/petermattis/goid",
52 "github.com/kr/text",
53 "github.com/hashicorp/go-cleanhttp",
54 "github.com/hashicorp/serf",
Serge Bazanski520c9342020-12-22 10:58:41 +010055 "github.com/joho/godotenv",
Serge Bazanski14cf7502020-05-28 14:29:56 +020056 "github.com/envoyproxy/protoc-gen-validate",
57 "github.com/hashicorp/go-rootcerts",
58 "github.com/armon/go-metrics",
59 "github.com/shirou/gopsutil",
60 "github.com/cncf/udpa/go",
61 "github.com/cpuguy83/go-md2man/v2",
62 "github.com/russross/blackfriday/v2",
63 "github.com/shurcooL/sanitized_anchor_name",
64 "github.com/google/gops",
65 "github.com/mattn/go-shellwords",
66 "github.com/c9s/goprocinfo",
67 "github.com/cilium/ipam",
68 "github.com/kardianos/osext",
69 "github.com/servak/go-fastping",
70 "github.com/golang/snappy",
71 "github.com/cilium/arping",
72 ).with(disabledProtoBuild, forceBazelGeneration).use(
73 "github.com/cilium/proxy",
74 ).with(disabledProtoBuild, buildExtraArgs("-exclude=src")).use(
75 // -exclude=src fixes a build issue with Gazelle. See:
76 // https://github.com/census-instrumentation/opencensus-proto/issues/200
77 "github.com/census-instrumentation/opencensus-proto",
78 )
79}