Skip to content

Commit

Permalink
Add protoglobal.DisableGlobalFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Sep 25, 2024
1 parent ee73df5 commit e3f3da0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions private/buf/cmd/buf/buf.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ import (
"github.com/bufbuild/buf/private/pkg/app"
"github.com/bufbuild/buf/private/pkg/app/appcmd"
"github.com/bufbuild/buf/private/pkg/app/appext"
"github.com/bufbuild/buf/private/pkg/protoglobal"

Check failure on line 92 in private/buf/cmd/buf/buf.go

View workflow job for this annotation

GitHub Actions / test-previous (1.21.x)

no required module provides package github.com/bufbuild/buf/private/pkg/protoglobal; to add it:

Check failure on line 92 in private/buf/cmd/buf/buf.go

View workflow job for this annotation

GitHub Actions / test

no required module provides package github.com/bufbuild/buf/private/pkg/protoglobal; to add it:

Check failure on line 92 in private/buf/cmd/buf/buf.go

View workflow job for this annotation

GitHub Actions / buf-binary-size

no required module provides package github.com/bufbuild/buf/private/pkg/protoglobal; to add it:

Check failure on line 92 in private/buf/cmd/buf/buf.go

View workflow job for this annotation

GitHub Actions / lint

no required module provides package github.com/bufbuild/buf/private/pkg/protoglobal; to add it:

Check failure on line 92 in private/buf/cmd/buf/buf.go

View workflow job for this annotation

GitHub Actions / test

no required module provides package github.com/bufbuild/buf/private/pkg/protoglobal; to add it:
"github.com/bufbuild/buf/private/pkg/syserror"
)

// Main is the entrypoint to the buf CLI.
func Main(name string) {
protoglobal.DisableGlobalFiles()
appcmd.Main(context.Background(), NewRootCommand(name))
}

Expand Down
2 changes: 2 additions & 0 deletions private/buf/cmd/protoc-gen-buf-breaking/breaking.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/bufbuild/buf/private/pkg/encoding"
"github.com/bufbuild/buf/private/pkg/protodescriptor"
"github.com/bufbuild/buf/private/pkg/protoencoding"
"github.com/bufbuild/buf/private/pkg/protoglobal"
"github.com/bufbuild/buf/private/pkg/tracing"
"github.com/bufbuild/protoplugin"
)
Expand All @@ -43,6 +44,7 @@ const (

// Main is the main.
func Main() {
protoglobal.DisableGlobalFiles()
protoplugin.Main(
protoplugin.HandlerFunc(handle),
// An `EmptyResolver` is passed to protoplugin for unmarshalling instead of defaulting to
Expand Down
2 changes: 2 additions & 0 deletions private/buf/cmd/protoc-gen-buf-lint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"github.com/bufbuild/buf/private/pkg/encoding"
"github.com/bufbuild/buf/private/pkg/protodescriptor"
"github.com/bufbuild/buf/private/pkg/protoencoding"
"github.com/bufbuild/buf/private/pkg/protoglobal"
"github.com/bufbuild/buf/private/pkg/tracing"
"github.com/bufbuild/protoplugin"
)
Expand All @@ -42,6 +43,7 @@ const (

// Main is the main.
func Main() {
protoglobal.DisableGlobalFiles()
protoplugin.Main(
protoplugin.HandlerFunc(handle),
// An `EmptyResolver` is passed to protoplugin for unmarshalling instead of defaulting to
Expand Down

0 comments on commit e3f3da0

Please sign in to comment.