Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit b391841

Browse files
committed
fixed merge conflicts
2 parents 4a43cfa + c19e1c0 commit b391841

File tree

141 files changed

+102662
-1207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+102662
-1207
lines changed

Gopkg.lock

Lines changed: 7 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.lock.orig

Lines changed: 217 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
all: test
22

3+
.PHONY: deps
4+
deps:
5+
@echo "running dep ensure..." && \
6+
dep ensure -v && \
7+
$(MAKE) gxundo
8+
9+
.PHONY: gxundo
10+
gxundo:
11+
@bash scripts/gxundo.sh vendor/
12+
313
.PHONY: test
414
test:
515
@go test -v *.go

scripts/gxundo.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,25 @@ normal="$(tput sgr0)"
1414
# function to install `jq`
1515
install_jq() {
1616
if [[ "$OSTYPE" == "linux-gnu" ]]; then
17-
sudo apt-get install jq
17+
if [ -n "$(command -v apt-get 2> /dev/null)" ]; then
18+
sudo apt-get -y install jq
19+
20+
elif [ -n "$(command -v which dnf 2> /dev/null)" ]; then
21+
sudo dnf -y install jq
22+
23+
elif [ -n "$(command -v yum 2> /dev/null)"]; then
24+
sudo yum -y install jq
25+
26+
elif [ -n "$(command -v portage 2> /dev/null)"]; then
27+
sudo portage -y install jq
28+
29+
elif [ -n "$(command -v pacman 2> /dev/null)"]; then
30+
sudo pacman -y install jq
31+
32+
else
33+
echo "Cannot install jq; No supported package manager installed on system (apt-get dnf, yum, portage, pacman)" >&2
34+
exit 1
35+
fi
1836
elif [[ "$OSTYPE" == "darwin"* ]]; then
1937
brew install jq
2038
fi

0 commit comments

Comments
 (0)