Serge Bazanski | 14cf750 | 2020-05-28 14:29:56 +0200 | [diff] [blame^] | 1 | // 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 | |
| 17 | package main |
| 18 | |
| 19 | func 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", |
| 55 | "github.com/envoyproxy/protoc-gen-validate", |
| 56 | "github.com/hashicorp/go-rootcerts", |
| 57 | "github.com/armon/go-metrics", |
| 58 | "github.com/shirou/gopsutil", |
| 59 | "github.com/cncf/udpa/go", |
| 60 | "github.com/cpuguy83/go-md2man/v2", |
| 61 | "github.com/russross/blackfriday/v2", |
| 62 | "github.com/shurcooL/sanitized_anchor_name", |
| 63 | "github.com/google/gops", |
| 64 | "github.com/mattn/go-shellwords", |
| 65 | "github.com/c9s/goprocinfo", |
| 66 | "github.com/cilium/ipam", |
| 67 | "github.com/kardianos/osext", |
| 68 | "github.com/servak/go-fastping", |
| 69 | "github.com/golang/snappy", |
| 70 | "github.com/cilium/arping", |
| 71 | ).with(disabledProtoBuild, forceBazelGeneration).use( |
| 72 | "github.com/cilium/proxy", |
| 73 | ).with(disabledProtoBuild, buildExtraArgs("-exclude=src")).use( |
| 74 | // -exclude=src fixes a build issue with Gazelle. See: |
| 75 | // https://github.com/census-instrumentation/opencensus-proto/issues/200 |
| 76 | "github.com/census-instrumentation/opencensus-proto", |
| 77 | ) |
| 78 | } |