Commit Graph

8 Commits

Author SHA1 Message Date
Thomas George Hartland 92229a112e Use shallow clone in update-vendor.sh 2020-08-10 12:55:37 +02:00
Maciek Pytel b56af8a39b Allow overriding go version when updating vendor
This is required because Kubernetes 1.17 lists go1.12 in go.mod,
but it doesn't actually compile using go1.12.
2020-07-24 15:19:16 +02:00
Aleksandra Malinowska 7fb3ea1d09 Make k8s fork configurable in update vendor 2020-02-13 15:28:19 +01:00
Łukasz Osipiuk 451015620e Tweaks to update-vendor.sh 2020-01-28 15:28:21 +01:00
Jay Pipes 237863a0fc Use git reset instead of git restore
The `git restore` command was introduced in Git version 2.23.0, which
was released in August 2019. Even late Linux distributions do not
include this modern of a Git binary. For example, Ubuntu 19.10 as of Nov
26, 2019 only includes Git 2.20.1.

In order to run hack/update-vendor.sh on machines with Git <2.23.0, I've
modified the script to use `git reset .` instead of `git restore
--staged`.

Issue #2560
2019-11-26 08:25:14 -05:00
Andrew McDermott a476691b19 cluster-autoscaler/hack/update-vendor.sh: fix usage of git commit
Running this script as-is fails as `git ci` is not a recognised
command. Fixed by referencing `git commit` explicitly; I guess it
works as it may be aliased.
2019-09-09 12:52:41 +01:00
Łukasz Osipiuk 97b205c040 Fixes/Improvements to update-vendor.sh 2019-06-26 11:45:00 +02:00
Łukasz Osipiuk 84af939100 Add update-vendor.sh
A script for automatic vendor directory update in world when
k8s.io/kubernets uses go modules.
2019-06-10 14:28:12 +02:00