Skip to content

Commit

Permalink
Turn on vendoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Sep 1, 2023
1 parent 6c42a94 commit f25a71a
Show file tree
Hide file tree
Showing 273 changed files with 77,054 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

run:
deadline: 3m # 1m by default
modules-download-mode: readonly
modules-download-mode: vendor

output:
# Do not print lines of code with issue.
Expand Down
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build/release-info: CHANGELOG.md | build
@if ! hash release-info 2>/dev/null; then printf "\e[1;36m>> Installing release-info...\e[0m\n"; go install github.com/sapcc/go-bits/tools/release-info@latest; fi
release-info $< $(shell git describe --tags --abbrev=0) > $@

GO_BUILDFLAGS =
GO_BUILDFLAGS = -mod vendor
GO_LDFLAGS =
GO_TESTENV =

Expand Down Expand Up @@ -74,8 +74,14 @@ build/cover.html: build/cover.out
build:
@mkdir $@

tidy-deps: FORCE
vendor: FORCE
go mod tidy
go mod vendor
go mod verify

vendor-compat: FORCE
go mod tidy -compat=$(shell awk '$$1 == "go" { print $$2 }' < go.mod)
go mod vendor
go mod verify

license-headers: FORCE
Expand Down Expand Up @@ -118,7 +124,8 @@ help: FORCE
@printf " \e[36mbuild/cover.html\e[0m Generate an HTML file with source code annotations from the coverage report.\n"
@printf "\n"
@printf "\e[1mDevelopment\e[0m\n"
@printf " \e[36mtidy-deps\e[0m Run go mod tidy and go mod verify.\n"
@printf " \e[36mvendor\e[0m Run go mod tidy, go mod verify, and go mod vendor.\n"
@printf " \e[36mvendor-compat\e[0m Same as 'make vendor' but go mod tidy will use '-compat' flag with the Go version from go.mod file as value.\n"
@printf " \e[36mlicense-headers\e[0m Add license headers to all .go files excluding the vendor directory.\n"
@printf " \e[36mclean\e[0m Run git clean.\n"

Expand Down
9 changes: 9 additions & 0 deletions Makefile.maker.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# Configuration file for <https://github.com/sapcc/go-makefile-maker>

metadata:
url: https://github.com/sapcc/limesctl

binaries:
- name: limesctl
fromPackage: .
installTo: bin/

golang:
enableVendoring: true
setGoModVersion: true

golangciLint:
createConfig: true

Expand Down
4 changes: 4 additions & 0 deletions vendor/github.com/gophercloud/gophercloud/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

867 changes: 867 additions & 0 deletions vendor/github.com/gophercloud/gophercloud/CHANGELOG.md

Large diffs are not rendered by default.

192 changes: 192 additions & 0 deletions vendor/github.com/gophercloud/gophercloud/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f25a71a

Please sign in to comment.