How to fork? Error: found but does not contain package
php editor Youzi will share with you how to deal with the problem of "How to fork? Error: Found, but does not contain the package". This error usually occurs when using a version control system, indicating that the system found the relevant branch, but did not contain the required package or file. In this article, we will explain how to diagnose and resolve this error to ensure the normal operation of the project. Whether you are a beginner or an experienced developer, this article will provide you with useful solutions and advice. Let’s solve this problem together!
Question content
Run:
go install github.com/google/[email protected] go install github.com/googleapis/[email protected]
The tool works:
gnostic --grpc-out=./target ./source.yaml
I've forked the library https://github.com/google/gnostic-grpc and modified it to not do any snake case conversion, and I've renamed the package as well as github All references to .com/thlib/gnostic-grpc
so that it can be installed.
Then I tried to install it:
go install github.com/thlib/gnostic-grpc@04d3e8500daa070fbe8c6118fe3b62e42d4a9b1f
besides:
go install github.com/google/[email protected] go install github.com/thlib/[email protected]
But it throws error:
go: downloading github.com/thlib/gnostic-grpc v0.1.3 go: github.com/thlib/[email protected]: module github.com/thlib/[email protected] found, but does not contain package github.com/thlib/gnostic-grpc
I don't understand what I did wrong.
- Package has been renamed
- Run
go mod init github.com/thlib/gnostic-grpc && go mod tidy
Then git clone
d original, now I'm even more confused, how does this work?
go install github.com/google/[email protected] go install github.com/googleapis/[email protected]
There seems to be no main.go
package at the root level, go install
How do I know what to install?
Also, if a package contains usage of an undeclared type, for example, how does it install it? /incompatibility
has apisetincompatibility
, it's not declared anywhere, shouldn't that be a bug?
This is a mistake in the official description, it seems they also made the mistake at some point:
go install github.com/google/[email protected] go install github.com/google/[email protected]
I've looked into these questions (and other questions and reddit posts, etc.) and they seem to be different:
- Found go module @latest, but does not contain package
- Module found but not package
- Go to install @latest found but does not contain the package
- go: module found but not package
- golang private module (v1.17) -- package found but not included
Workaround
Also, if a package contains usage of an undeclared type, for example, how does it install it? /incompatibility has ApiSetIncompatibility which is not declared anywhere, shouldn't that be an error?
ApiSetIncompatibility will be declared in the .pb generated file after proto compilation. You can find it in the incompatibility/incompatibility-report.proto file on line 88. So, to solve this problem, you need to generate the .pb file using protoc first.
The above is the detailed content of How to fork? Error: found but does not contain package. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Golang is better than Python in terms of performance and scalability. 1) Golang's compilation-type characteristics and efficient concurrency model make it perform well in high concurrency scenarios. 2) Python, as an interpreted language, executes slowly, but can optimize performance through tools such as Cython.

Golang is better than C in concurrency, while C is better than Golang in raw speed. 1) Golang achieves efficient concurrency through goroutine and channel, which is suitable for handling a large number of concurrent tasks. 2)C Through compiler optimization and standard library, it provides high performance close to hardware, suitable for applications that require extreme optimization.

Golang is suitable for rapid development and concurrent scenarios, and C is suitable for scenarios where extreme performance and low-level control are required. 1) Golang improves performance through garbage collection and concurrency mechanisms, and is suitable for high-concurrency Web service development. 2) C achieves the ultimate performance through manual memory management and compiler optimization, and is suitable for embedded system development.

Goimpactsdevelopmentpositivelythroughspeed,efficiency,andsimplicity.1)Speed:Gocompilesquicklyandrunsefficiently,idealforlargeprojects.2)Efficiency:Itscomprehensivestandardlibraryreducesexternaldependencies,enhancingdevelopmentefficiency.3)Simplicity:

Goisidealforbeginnersandsuitableforcloudandnetworkservicesduetoitssimplicity,efficiency,andconcurrencyfeatures.1)InstallGofromtheofficialwebsiteandverifywith'goversion'.2)Createandrunyourfirstprogramwith'gorunhello.go'.3)Exploreconcurrencyusinggorout

Golang and Python each have their own advantages: Golang is suitable for high performance and concurrent programming, while Python is suitable for data science and web development. Golang is known for its concurrency model and efficient performance, while Python is known for its concise syntax and rich library ecosystem.

C is more suitable for scenarios where direct control of hardware resources and high performance optimization is required, while Golang is more suitable for scenarios where rapid development and high concurrency processing are required. 1.C's advantage lies in its close to hardware characteristics and high optimization capabilities, which are suitable for high-performance needs such as game development. 2.Golang's advantage lies in its concise syntax and natural concurrency support, which is suitable for high concurrency service development.

The performance differences between Golang and C are mainly reflected in memory management, compilation optimization and runtime efficiency. 1) Golang's garbage collection mechanism is convenient but may affect performance, 2) C's manual memory management and compiler optimization are more efficient in recursive computing.
