You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
want change replace github.com/tmc/langchaingo => github.com/Abirdcfly/langchaingo v0.0.0-20240124015404-c7798664fdb1 to replace github.com/tmc/langchaingo => github.com/Abirdcfly/langchaingo patch, then exec go mod tidy,
but the go mod tidy say
go: errors parsing go.mod:
go.mod:184: can't query version "patch" of module github.com/Abirdcfly/langchaingo: no existing version is required
but if change to replace github.com/tmc/langchaingo => github.com/Abirdcfly/langchaingo abcd, then exec go mod tidy, it is ok.
replace github.com/tmc/langchaingo => github.com/Abirdcfly/langchaingo patch then go mod tidy:
go: errors parsing go.mod:
go.mod:184: can't query version "patch" of module github.com/Abirdcfly/langchaingo: no existing version is required
A revision identifier for the underlying source repository, such as a commit hash prefix, revision tag, or branch name. If the revision is tagged with a semantic version, this query selects that version. Otherwise, this query selects a pseudo-version for the underlying commit. Note that branches and tags with names matched by other version queries cannot be selected this way.
...
The string patch, which selects the latest available version with the same major and minor version numbers as the currently required version.
Go version
go version go1.22.0 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
in go.mod https://github.com/kubeagi/arcadia/blob/0705fb8214ffa5dbaa4200902728ed2d58947f5f/go.mod#L184
want change
replace github.com/tmc/langchaingo => github.com/Abirdcfly/langchaingo v0.0.0-20240124015404-c7798664fdb1
toreplace github.com/tmc/langchaingo => github.com/Abirdcfly/langchaingo patch
, then execgo mod tidy
,but the
go mod tidy
saybut if change to
replace github.com/tmc/langchaingo => github.com/Abirdcfly/langchaingo abcd
, then execgo mod tidy
, it is ok.So the point is that we can't use the
patch
keyword, even if there is a branch upstream namedpatch
(https://github.com/Abirdcfly/langchaingo/tree/patch)What did you see happen?
replace github.com/tmc/langchaingo => github.com/Abirdcfly/langchaingo patch
thengo mod tidy
:What did you expect to see?
no error
maybe related to #49111 ?
The text was updated successfully, but these errors were encountered: