Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: errors parsing go.mod #66961

Open
aliihsankamil opened this issue Apr 22, 2024 · 3 comments
Open

go: errors parsing go.mod #66961

aliihsankamil opened this issue Apr 22, 2024 · 3 comments
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@aliihsankamil
Copy link

Go version

go version go1.22.0 windows/amd64

Output of go env in your module/workspace:

module blueprint-example

go 1.22.0

replace geometry-lib => D:/DATA ALI/2 DOKUMEN\PELATIHAN/Enigma Camp/Golang/GOLANG DATABASE/geometry-lib

What did you do?

go: errors parsing go.mod:
go.mod:5: usage: replace module/path [v1.2.3] => other/module v1.4
or replace module/path [v1.2.3] => ../local/directory

What did you see happen?

Why?

What did you expect to see?

I want to replace module

@seankhliao
Copy link
Member

I believe the file separator is \ on windows.
Is 2 DOKUMEN\PELATIHAN a literal string with a \ or 2 directories?

@aliihsankamil
Copy link
Author

ouh thankyou, but when i change i have error to

@go101
Copy link

go101 commented Apr 22, 2024

the replace local path should start with ./ or ../. Don't use absolute paths.

And try not to use path with space chars. (I'm not sure, you can try it).

@joedian joedian added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants