Fix version regex to cover 'release-vX.Y' as well as SHA-1s
@@ -163,7 +163,7 @@ update-libcalico:
$(CALICO_BUILD) /bin/sh -c ' \
cd /go/src/$(PACKAGE_NAME); \
echo "Updating libcalico to $(LIBCALICO_VERSION) from $(LIBCALICO_REPO)"; \
- export OLD_VER=$$(grep --after 50 libcalico-go glide.yaml |grep --max-count=1 --only-matching --perl-regexp "version:\s*\K[\.0-9a-z]+") ;\
+ export OLD_VER=$$(grep --after 50 libcalico-go glide.yaml |grep --max-count=1 --only-matching --perl-regexp "version:\s*\K[^\s]+") ;\
echo "Old version: $$OLD_VER";\
if [ $(LIBCALICO_VERSION) != $$OLD_VER ]; then \
sed -i "s/$$OLD_VER/$(LIBCALICO_VERSION)/" glide.yaml && \
