Revision f9302d917452e5ada93ccc8ced0f0268ae4264ec authored by Joe Stringer on 21 January 2021, 01:10:58 UTC, committed by Joe Stringer on 21 January 2021, 01:10:58 UTC
Workflow: ./contrib/go-mod/wrapper.sh This launches a docker container with your current Cilium working directory mounted into the correct gopath inside the container. Inside the container: go mod download Then, use make / unit-tests / go-mod scripts to update dependencies etc. Signed-off-by: Joe Stringer <joe@cilium.io>
1 parent c4933f1
prepare.sh
#!/bin/bash
CLANG_DIR="clang+llvm-3.8.1-x86_64-linux-gnu-ubuntu-14.04"
CLANG_FILE="${CLANG_DIR}.tar.xz"
CLANG_URL="http://releases.llvm.org/3.8.1/$CLANG_FILE"
wget -nv $CLANG_URL
sudo rm -rf /usr/local/clang
sudo mkdir -p /usr/local
sudo tar -C /usr/local -xJf $CLANG_FILE
sudo ln -s /usr/local/$CLANG_DIR /usr/local/clang
rm $CLANG_FILE
NEWPATH="/usr/local/clang/bin"
export PATH="$NEWPATH:$PATH"
# disable go modules to avoid downloading all dependencies when doing go get
GO111MODULE=off go get github.com/cilium/go-bindata/go-bindata
GO111MODULE=off go get golang.org/x/tools/cmd/cover
GO111MODULE=off go get github.com/mattn/goveralls
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...