-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug: panic: proto: file "extensions/extension.proto" is already registered #1702
Comments
I suspect the workaround is proposed in |
Thank you for the update, @stefanb ! Unfortunately, I am still getting the same error with both |
@fruwe, I guess the workaround was merged, but it still needs to be released in a version. |
Awesome, thanks. Let's retry later then. |
@stefanb Do you know when the new version will be released? |
No, I don't. |
the workaround does not work the new release, Homebrew/homebrew-core#184851 (still seeing the same issue) |
Can you please try the latest version 1.19.9. we have fixed the protobuf error |
@nmoretenable Thank you, this worked for me
|
Still seeing this in 1.19.9 when running via nix. ❯ nix-shell -p terrascan
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
this path will be fetched (20.61 MiB download, 111.25 MiB unpacked):
/nix/store/mfpha198lspqa87jkvgxx8ydmqkgc5f0-terrascan-1.19.9
copying path '/nix/store/mfpha198lspqa87jkvgxx8ydmqkgc5f0-terrascan-1.19.9' from 'https://cache.nixos.org'...
[nix-shell:~/blah]$ terrascan
panic: proto: file "extensions/extension.proto" is already registered
previously from: "github.com/google/gnostic-models/extensions"
currently from: "github.com/googleapis/gnostic/extensions"
See https://protobuf.dev/reference/go/faq#namespace-conflict
goroutine 1 [running]:
google.golang.org/protobuf/reflect/protoregistry.init.func1({0x105cd8780?, 0x10411abc0?}, {0x1041bb9c0, 0x140002e7bf0})
google.golang.org/protobuf@v1.31.0/reflect/protoregistry/registry.go:56 +0x1f8
google.golang.org/protobuf/reflect/protoregistry.(*Files).RegisterFile(0x140001a2570, {0x1041f8218, 0x14000358fc0})
google.golang.org/protobuf@v1.31.0/reflect/protoregistry/registry.go:130 +0x9c4
google.golang.org/protobuf/internal/filedesc.Builder.Build({{0x1036c5de8, 0x28}, {0x105b28460, 0x282, 0x282}, 0x0, 0x4, 0x0, 0x0, {0x1041c94d8, ...}, ...})
google.golang.org/protobuf@v1.31.0/internal/filedesc/build.go:112 +0x1a0
google.golang.org/protobuf/internal/filetype.Builder.Build({{{0x1036c5de8, 0x28}, {0x105b28460, 0x282, 0x282}, 0x0, 0x4, 0x0, 0x0, {0x0, ...}, ...}, ...})
google.golang.org/protobuf@v1.31.0/internal/filetype/build.go:138 +0x158
github.com/googleapis/gnostic/extensions.file_extensions_extension_proto_init()
github.com/googleapis/gnostic@v0.5.5/extensions/extension.pb.go:456 +0x144
github.com/googleapis/gnostic/extensions.init.0()
github.com/googleapis/gnostic@v0.5.5/extensions/extension.pb.go:388 +0x1c |
Description
I tried running TerraScan as usual, but today it started to fail.
I expected TerraScan to work as usual.
What I Did
I tried running terrascan with the latest docker image, which failed with the following log.
The latest tag (which is not the tag
latest
) according to https://hub.docker.com/r/tenable/terrascan/tags is 36dd9a, which also fails but for a different reason.tenable/terrascan:1.19.2 works:
The text was updated successfully, but these errors were encountered: