| 1 |
# Vendoring dependencies |
| 2 |
|
| 3 |
```bash |
| 4 |
# Run this from project root directory |
| 5 |
go mod vendor -v |
| 6 |
|
| 7 |
# Download the dependencies that are not available in Debian, are unlikely to |
| 8 |
# ever be in Debian as independent separate packages, and thus need to be |
| 9 |
# vendored in this package |
| 10 |
MODULES=( |
| 11 |
"github.com/pingcap/log" |
| 12 |
) |
| 13 |
|
| 14 |
# Loop through each module |
| 15 |
for MODULE in "${MODULES[@]}" |
| 16 |
do |
| 17 |
mkdir -p debian/vendor/"$MODULE" |
| 18 |
cp --archive --update --verbose vendor/"$MODULE"/* debian/vendor/"$MODULE"/ |
| 19 |
done |
| 20 |
``` |