Skip to content

Commit d9c64b6

Browse files
authored
Merge pull request #410 from jankaluza/vendor-2
Re-enable vendoring
2 parents b636c80 + 8fcff74 commit d9c64b6

File tree

3,875 files changed

+1483867
-16
lines changed

Some content is hidden

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

3,875 files changed

+1483867
-16
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ storage_linux_testing: &linux_testing
7979
fingerprint_script: cat **/go.sum
8080
folder: $GOPATH/pkg/mod
8181
# Note the cache is populated the first time it is used with the given deps.
82-
# But because each task might not download all he same deps force make tidy
82+
# But because each task might not download all he same deps force make vendor
8383
# which downloads all deps for all modules. This is only run once when the
8484
# cache is created so it should not slow things down much.
85-
populate_script: make tidy
85+
populate_script: make vendor
8686

8787
# Separate scripts for separate outputs, makes debugging easier.
8888
setup_script: '${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/setup.sh |& ${_TIMESTAMP}'

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[codespell]
33

44
# Comma-separated list of files to skip.
5-
skip = ./.git,go.work.sum,go.sum,./image/signature/fixtures,./image/signature/simplesigning/testdata,./storage/tests/tools/vendor,./storage/AUTHORS
5+
skip = ./.git,go.work.sum,go.sum,./image/signature/fixtures,./image/signature/simplesigning/testdata,./storage/tests/tools/vendor,./storage/AUTHORS,./vendor
66

77
# Comma separated list of words to be ignored. Words must be lowercased.
88
ignore-words-list = clos,creat,ro,hastable,shouldnot,mountns,passt,te,bu,afile,flate,prevend,Plack,worl

.github/workflows/validate.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
# only run this on PRs
7171
if: github.event_name == 'pull_request'
7272
runs-on: ubuntu-24.04
73+
env:
74+
GIT_CHECK_EXCLUDE: "./vendor"
7375
steps:
7476
- uses: actions/checkout@v5
7577
with:
@@ -83,11 +85,12 @@ jobs:
8385
# See comment on lint task
8486
cache-dependency-path: "**/go.sum"
8587
- name: run git-validation
88+
8689
# We validate all commits as we only fetched the number of commits in the PR above,
8790
# by default git-validation has some special github action handling but that seems broken.
8891
run: make .install.gitvalidation && git-validation -no-github
8992

90-
go-tidy:
93+
go-vendor:
9194
runs-on: ubuntu-24.04
9295
steps:
9396
- uses: actions/checkout@v5
@@ -96,7 +99,7 @@ jobs:
9699
go-version: 1.25.x
97100
# See comment on lint task
98101
cache-dependency-path: "**/go.sum"
99-
- name: tidy
100-
run: make tidy
102+
- name: vendor
103+
run: make vendor
101104
- name: check if tree is clean
102105
run: hack/tree_status.sh

.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

CONTRIBUTING_GO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $ make vendor
4848

4949
If you are working in the [container-libs](https://github.com/containers/container-libs) monorepo use:
5050
```
51-
make tidy
51+
make vendor
5252
```
5353
This command syncs the dependency versions across all modules in the repo.
5454

Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,22 @@ install.tools: .install.gitvalidation .install.golangci-lint .install.md2man
4141

4242
.PHONY: git-validation
4343
git-validation: .install.gitvalidation
44-
git-validation -q -run DCO,short-subject,dangling-whitespace -range "$(EPOCH_TEST_COMMIT)..HEAD"
44+
GIT_CHECK_EXCLUDE="./vendor" git-validation -q -run DCO,short-subject,dangling-whitespace -range "$(EPOCH_TEST_COMMIT)..HEAD"
4545

4646
.PHONY: lint
4747
lint: .install.golangci-lint
4848
@$(MAKE) -C common lint
4949
@$(MAKE) -C image lint
5050
@$(MAKE) -C storage lint
5151

52-
.PHONY: tidy-in-container
53-
tidy-in-container:
54-
podman run --privileged --rm --env HOME=/root -v `pwd`:/src -w /src golang make tidy
52+
.PHONY: vendor-in-container
53+
vendor-in-container:
54+
podman run --privileged --rm --env HOME=/root -v `pwd`:/src -w /src golang make vendor
5555

56-
.PHONY: tidy
57-
tidy:
56+
.PHONY: vendor
57+
vendor:
5858
@$(MAKE) -C common tidy
5959
@$(MAKE) -C image tidy
6060
@$(MAKE) -C storage tidy
61+
$(GO) work vendor
62+
$(GO) work sync

go.work.sum

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
2+
github.com/cpuguy83/go-md2man/v2 v2.0.5/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
3+
github.com/cpuguy83/go-md2man/v2 v2.0.7/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
4+
github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw=
5+
github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
6+
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
7+
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
8+
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
9+
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
10+
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
11+
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
12+
github.com/urfave/cli v1.22.16/go.mod h1:EeJR6BKodywf4zciqrdw6hpCPk68JO9z5LazXZMn5Po=
13+
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
14+
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
15+
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
16+
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
17+
google.golang.org/genproto v0.0.0-20250303144028-a0af3efb3deb h1:ITgPrl429bc6+2ZraNSzMDk3I95nmQln2fuPstKwFDE=

hack/tree_status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
SUGGESTION="${SUGGESTION:-run \"make tidy\" and commit all changes.}"
4+
SUGGESTION="${SUGGESTION:-run \"make vendor\" and commit all changes.}"
55

66
STATUS=$(git status --porcelain)
77
if [[ -z $STATUS ]]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version = 1
2+
3+
test_patterns = [
4+
"*_test.go"
5+
]
6+
7+
[[analyzers]]
8+
name = "go"
9+
enabled = true
10+
11+
[analyzers.meta]
12+
import_path = "dario.cat/mergo"

vendor/dario.cat/mergo/.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#### joe made this: http://goel.io/joe
2+
3+
#### go ####
4+
# Binaries for programs and plugins
5+
*.exe
6+
*.dll
7+
*.so
8+
*.dylib
9+
10+
# Test binary, build with `go test -c`
11+
*.test
12+
13+
# Output of the go coverage tool, specifically when used with LiteIDE
14+
*.out
15+
16+
# Golang/Intellij
17+
.idea
18+
19+
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
20+
.glide/
21+
22+
#### vim ####
23+
# Swap
24+
[._]*.s[a-v][a-z]
25+
[._]*.sw[a-p]
26+
[._]s[a-v][a-z]
27+
[._]sw[a-p]
28+
29+
# Session
30+
Session.vim
31+
32+
# Temporary
33+
.netrwhist
34+
*~
35+
# Auto-generated tag files
36+
tags

0 commit comments

Comments
 (0)