Skip to content

Commit d3341ee

Browse files
authored
Move ./private/buf/cmd packages to ./cmd (#4057)
1 parent 6ef2cb3 commit d3341ee

File tree

754 files changed

+10518
-2534
lines changed

Some content is hidden

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

754 files changed

+10518
-2534
lines changed

.dockerignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
.tmp/
77
.vscode/
88
cmd/buf/buf
9+
cmd/buf/internal/command/alpha/protoc/internal/protoc-gen-insertion-point-receiver/protoc-gen-insertion-point-receiver
10+
cmd/buf/internal/command/alpha/protoc/internal/protoc-gen-insertion-point-writer/protoc-gen-insertion-point-writer
11+
cmd/buf/internal/command/alpha/protoc/test.txt
12+
cmd/buf/internal/command/generate/internal/protoc-gen-top-level-type-names-yaml/protoc-gen-top-level-type-names-yaml
913
cmd/protoc-gen-buf-breaking/protoc-gen-buf-breaking
1014
cmd/protoc-gen-buf-lint/protoc-gen-buf-lint
1115
private/buf/buftesting/cache/
1216
private/buf/bufwkt/cmd/wkt-go-data/wkt-go-data
13-
private/buf/cmd/buf/command/alpha/protoc/internal/protoc-gen-insertion-point-receiver/protoc-gen-insertion-point-receiver
14-
private/buf/cmd/buf/command/alpha/protoc/internal/protoc-gen-insertion-point-writer/protoc-gen-insertion-point-writer
15-
private/buf/cmd/buf/command/alpha/protoc/test.txt
16-
private/buf/cmd/buf/command/generate/internal/protoc-gen-top-level-type-names-yaml/protoc-gen-top-level-type-names-yaml
1717
private/buf/cmd/buf/testdata/imports/cache/v3/modulelocks/
1818
private/buf/cmd/buf/testdata/imports/corrupted_cache_dep/v3/modulelocks/
1919
private/buf/cmd/buf/testdata/imports/corrupted_cache_file/v3/modulelocks/

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
/.tmp/
77
/.vscode/
88
/cmd/buf/buf
9+
/cmd/buf/internal/command/alpha/protoc/internal/protoc-gen-insertion-point-receiver/protoc-gen-insertion-point-receiver
10+
/cmd/buf/internal/command/alpha/protoc/internal/protoc-gen-insertion-point-writer/protoc-gen-insertion-point-writer
11+
/cmd/buf/internal/command/alpha/protoc/test.txt
12+
/cmd/buf/internal/command/generate/internal/protoc-gen-top-level-type-names-yaml/protoc-gen-top-level-type-names-yaml
913
/cmd/protoc-gen-buf-breaking/protoc-gen-buf-breaking
1014
/cmd/protoc-gen-buf-lint/protoc-gen-buf-lint
1115
/private/buf/buftesting/cache/
1216
/private/buf/bufwkt/cmd/wkt-go-data/wkt-go-data
13-
/private/buf/cmd/buf/command/alpha/protoc/internal/protoc-gen-insertion-point-receiver/protoc-gen-insertion-point-receiver
14-
/private/buf/cmd/buf/command/alpha/protoc/internal/protoc-gen-insertion-point-writer/protoc-gen-insertion-point-writer
15-
/private/buf/cmd/buf/command/alpha/protoc/test.txt
16-
/private/buf/cmd/buf/command/generate/internal/protoc-gen-top-level-type-names-yaml/protoc-gen-top-level-type-names-yaml
1717
/private/buf/cmd/buf/testdata/imports/cache/v3/modulelocks/
1818
/private/buf/cmd/buf/testdata/imports/corrupted_cache_dep/v3/modulelocks/
1919
/private/buf/cmd/buf/testdata/imports/corrupted_cache_file/v3/modulelocks/

.golangci.yml

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,38 @@ linters:
105105
# Whether or not to apply De Morgan's law is contextual and should be handled during
106106
# code review.
107107
text: 'QF1001'
108+
- linters:
109+
- paralleltest
110+
# We use chdir in these tests.
111+
path: cmd/buf/workspace_subdir_test.go
112+
text: missing the call to method parallel
113+
- linters:
114+
- paralleltest
115+
# TestWorkspaceArchiveDir, TestWorkspaceWithInvalidArchivePathFail
116+
# and TestWorkspaceWithInvalidArchiveAbsolutePathFail cannot run in parallel
117+
# because they all call createZipFromDir on the same path, writing to the same file.
118+
path: cmd/buf/workspace_test.go
119+
text: missing the call to method parallel
120+
- linters:
121+
- paralleltest
122+
# This test shouldn't run in parallel as it needs osext.Getwd.
123+
path: cmd/buf/internal/command/config/configmigrate/configmigrate_test.go
124+
text: missing the call to method parallel
125+
- linters:
126+
- forbidigo
127+
# This is a legacy usage of os.Getwd we're not bothering to port yet.
128+
path: cmd/buf/internal/command/alpha/protoc/protoc_test.go
129+
text: os.Getwd
130+
- linters:
131+
- dogsled
132+
# One function call doesn't care about most of the returned destructured values. The
133+
# dogsled linter complains about it. (Value of this linter is unclear...)
134+
path: cmd/buf/internal/command/curl/curl.go
135+
- linters:
136+
- forbidigo
137+
# This is a legacy usage of os.Getwd we're not bothering to port yet.
138+
path: cmd/buf/internal/command/generate/generate_test.go
139+
text: os.Getwd
108140
- linters:
109141
- exhaustruct
110142
# We didn't turn on exhaustruct historically, but we really want to make sure it is turned on
@@ -168,33 +200,6 @@ linters:
168200
# makes this test flaky.
169201
path: private/buf/bufstudioagent/bufstudioagent_test.go
170202
text: missing the call to method parallel
171-
- linters:
172-
- paralleltest
173-
# TestWorkspaceArchiveDir, TestWorkspaceWithInvalidArchivePathFail
174-
# and TestWorkspaceWithInvalidArchiveAbsolutePathFail cannot run in parallel
175-
# because they all call createZipFromDir on the same path, writing to the same file.
176-
path: private/buf/cmd/buf/workspace_test.go
177-
text: missing the call to method parallel
178-
- linters:
179-
- paralleltest
180-
# This test shouldn't run in parallel as it needs osext.Getwd.
181-
path: private/buf/cmd/buf/command/config/configmigrate/configmigrate_test.go
182-
text: missing the call to method parallel
183-
- linters:
184-
- forbidigo
185-
# This is a legacy usage of os.Getwd we're not bothering to port yet.
186-
path: private/buf/cmd/buf/command/alpha/protoc/protoc_test.go
187-
text: os.Getwd
188-
- linters:
189-
- dogsled
190-
# One function call doesn't care about most of the returned destructured values. The
191-
# dogsled linter complains about it. (Value of this linter is unclear...)
192-
path: private/buf/cmd/buf/command/curl/curl.go
193-
- linters:
194-
- forbidigo
195-
# This is a legacy usage of os.Getwd we're not bothering to port yet.
196-
path: private/buf/cmd/buf/command/generate/generate_test.go
197-
text: os.Getwd
198203
- linters:
199204
- gochecknoinits
200205
# we actually want to use this init to create a protovalidate.Validator
@@ -330,7 +335,7 @@ linters:
330335
- linters:
331336
- paralleltest
332337
# The LsModules tests call chdir and cannot be parallelized.
333-
path: private/buf/cmd/buf/buf_test.go
338+
path: cmd/buf/buf_test.go
334339
text: LsModules
335340
- linters:
336341
- gosec

0 commit comments

Comments
 (0)