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

Commit

Permalink
remove tools vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Feb 2, 2020
1 parent 6cbaf14 commit 2a09e66
Show file tree
Hide file tree
Showing 1,521 changed files with 13 additions and 514,894 deletions.
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -89,14 +89,15 @@ build:

.PHONY: build-clean
build-clean:
@go clean -cache
@rm -f $(BINARY)

.PHONY: install
install: build
install:
@go install $(LDFLAGS) $(MAIN)

.PHONY: install-clean
install-clean:
@rm -f $(BINARY)
@go clean -cache

.PHONY: test
test:
Expand Down
13 changes: 6 additions & 7 deletions bin/activate
Expand Up @@ -55,11 +55,15 @@ deactivate () {
unset -f deactivate
unset -f get
unset -f realpath
unset -f tools
unset -f up
fi
}

deps () {
go mod tidy
if [[ "`go env GOFLAGS`" =~ -mod=vendor ]]; then go mod vendor; fi
}

get () {
go get -mod= $@
}
Expand All @@ -72,14 +76,9 @@ realpath () {
echo "$(cd `dirname ${1}` && pwd)/${1}"
}

tools () {
(cd "${_ROOT%/}"/tools && make $@)
}

up () {
get -u $@
go mod tidy
if [[ "`go env GOFLAGS`" =~ -mod=vendor ]]; then go mod vendor; fi
deps
}

deactivate nondestructive
Expand Down
3 changes: 3 additions & 0 deletions tools/.gitignore
@@ -1,2 +1,5 @@
# binaries
/bin/

# dependencies
/vendor/
105 changes: 0 additions & 105 deletions tools/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions tools/vendor/github.com/BurntSushi/toml/.gitignore

This file was deleted.

15 changes: 0 additions & 15 deletions tools/vendor/github.com/BurntSushi/toml/.travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions tools/vendor/github.com/BurntSushi/toml/COMPATIBLE

This file was deleted.

21 changes: 0 additions & 21 deletions tools/vendor/github.com/BurntSushi/toml/COPYING

This file was deleted.

19 changes: 0 additions & 19 deletions tools/vendor/github.com/BurntSushi/toml/Makefile

This file was deleted.

0 comments on commit 2a09e66

Please sign in to comment.