Skip to content

Vendor go dependencies #505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -240,3 +240,14 @@ jobs:
docker exec test docker info
docker exec test ./integration-docker.sh
docker rm -f test
deps:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: install go
uses: actions/setup-go@v5
with:
go-version: "1.24"
check-latest: true
- name: verify deps
run: make verify-dependencies
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -10,15 +10,15 @@ clean:
$(RM) -r bin/ _artifact/

bin/rootlesskit: $(GO_FILES)
$(GO) build -o $@ -v ./cmd/rootlesskit
$(GO) build -mod=vendor -o $@ -v ./cmd/rootlesskit

bin/rootlessctl: $(GO_FILES)
$(GO) build -o $@ -v ./cmd/rootlessctl
$(GO) build -mod=vendor -o $@ -v ./cmd/rootlessctl

bin/rootlesskit-docker-proxy: $(GO_FILES)
@echo "NOTE: rootlesskit-docker-proxy is required only if you use Docker prior to v28."
@echo "NOTE: rootlesskit-docker-proxy is DEPRECATED and will be removed in RootlessKit v3."
$(GO) build -o $@ -v ./cmd/rootlesskit-docker-proxy
$(GO) build -mod=vendor -o $@ -v ./cmd/rootlesskit-docker-proxy

.PHONY: cross
cross:
@@ -30,3 +30,15 @@ install:
install -D -m 755 $(CURDIR)/bin/rootlesskit $(DESTDIR)$(BINDIR)/rootlesskit
install -D -m 755 $(CURDIR)/bin/rootlessctl $(DESTDIR)$(BINDIR)/rootlessctl
install -D -m 755 $(CURDIR)/bin/rootlesskit-docker-proxy $(DESTDIR)$(BINDIR)/rootlesskit-docker-proxy

.PHONY: vendor
vendor:
$(GO) mod tidy
$(GO) mod vendor
$(GO) mod verify

.PHONY: verify-dependencies
verify-dependencies: vendor
@test -z "$$(git status --porcelain -- go.mod go.sum vendor/)" \
|| (echo -e "git status:\n $$(git status -- go.mod go.sum vendor/)\nerror: vendor/, go.mod and/or go.sum not up to date. Run \"make vendor\" to update"; exit 1) \
&& echo "all vendor files are up to date."
1 change: 1 addition & 0 deletions vendor/github.com/Masterminds/semver/v3/.gitignore

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

27 changes: 27 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/.golangci.yml

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

242 changes: 242 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/CHANGELOG.md

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

19 changes: 19 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/LICENSE.txt

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

31 changes: 31 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/Makefile

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

258 changes: 258 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/README.md
19 changes: 19 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/SECURITY.md
24 changes: 24 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/collection.go
594 changes: 594 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/constraints.go

Large diffs are not rendered by default.

184 changes: 184 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/doc.go
645 changes: 645 additions & 0 deletions vendor/github.com/Masterminds/semver/v3/version.go

Large diffs are not rendered by default.

201 changes: 201 additions & 0 deletions vendor/github.com/containernetworking/plugins/LICENSE
41 changes: 41 additions & 0 deletions vendor/github.com/containernetworking/plugins/pkg/ns/README.md
286 changes: 286 additions & 0 deletions vendor/github.com/containernetworking/plugins/pkg/ns/ns_linux.go
21 changes: 21 additions & 0 deletions vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md
62 changes: 62 additions & 0 deletions vendor/github.com/cpuguy83/go-md2man/v2/md2man/debug.go
23 changes: 23 additions & 0 deletions vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go
408 changes: 408 additions & 0 deletions vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions vendor/github.com/gofrs/flock/.gitignore
114 changes: 114 additions & 0 deletions vendor/github.com/gofrs/flock/.golangci.yml
28 changes: 28 additions & 0 deletions vendor/github.com/gofrs/flock/LICENSE
15 changes: 15 additions & 0 deletions vendor/github.com/gofrs/flock/Makefile
45 changes: 45 additions & 0 deletions vendor/github.com/gofrs/flock/README.md
21 changes: 21 additions & 0 deletions vendor/github.com/gofrs/flock/SECURITY.md
18 changes: 18 additions & 0 deletions vendor/github.com/gofrs/flock/build.sh
206 changes: 206 additions & 0 deletions vendor/github.com/gofrs/flock/flock.go
40 changes: 40 additions & 0 deletions vendor/github.com/gofrs/flock/flock_others.go
210 changes: 210 additions & 0 deletions vendor/github.com/gofrs/flock/flock_unix.go
393 changes: 393 additions & 0 deletions vendor/github.com/gofrs/flock/flock_unix_fcntl.go
158 changes: 158 additions & 0 deletions vendor/github.com/gofrs/flock/flock_windows.go
27 changes: 27 additions & 0 deletions vendor/github.com/google/go-cmp/LICENSE
671 changes: 671 additions & 0 deletions vendor/github.com/google/go-cmp/cmp/compare.go

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions vendor/github.com/google/go-cmp/cmp/export.go
18 changes: 18 additions & 0 deletions vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go
123 changes: 123 additions & 0 deletions vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go
Loading