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
go: github.com/xrfang/hxdump@v0.0.0-20201005071519-c037229348d4: parsing ../../hxdump/go.mod: open /home/xrfang/git/hxdump/go.mod: no such file or directory
The module is cached under: /home/xrfang/go/pkg/mod/github.com/xrfang/hxdump@v0.0.0-20201005071519-c037229348d4 , there is no go.mod in that directory.
The text was updated successfully, but these errors were encountered:
A filesystem-local replace directive requires a go.mod file at the root of the replacement directory, even if one is not normally present for that module. That is to prevent accidentally writing a replace for individual packages within a module, which is not a supported operation.
To make this replacement work, you can do: (cd /home/xrfang/git/hxdump && go mod init github.com/xrfang/hxdump).
@bcmills I suggest that the team consider improve the error prompt. Instead of:
go: github.com/xrfang/hxdump@v0.0.0-20201005071519-c037229348d4: parsing ../../hxdump/go.mod: open /home/xrfang/git/hxdump/go.mod: no such file or directory
How about:
go: github.com/xrfang/hxdump@v0.0.0-20201005071519-c037229348d4: missing required go.mod under /home/xrfang/git/hxdump
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In order to debug problems in my package https://github.com/xrfang/hxdump, I used replace in the go.mod file of a project:
`module bscli
go 1.14
replace github.com/xrfang/hxdump => /home/xrfang/git/hxdump
require (
github.com/augustoroman/hexdump v0.0.0-20190827031536-6506f4163e93
github.com/mdp/qrterminal v1.0.1
github.com/xrfang/go-res v1.3.0
github.com/xrfang/hxdump v0.0.0-20201005071519-c037229348d4
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
)
`
What did you expect to see?
The project should be compiled without problem.
What did you see instead?
go: github.com/xrfang/hxdump@v0.0.0-20201005071519-c037229348d4: parsing ../../hxdump/go.mod: open /home/xrfang/git/hxdump/go.mod: no such file or directory
The module is cached under:
/home/xrfang/go/pkg/mod/github.com/xrfang/hxdump@v0.0.0-20201005071519-c037229348d4
, there is nogo.mod
in that directory.The text was updated successfully, but these errors were encountered: