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 Mods: local imports #45001

Closed
vjerci opened this issue Mar 14, 2021 · 1 comment
Closed

Go Mods: local imports #45001

vjerci opened this issue Mar 14, 2021 · 1 comment

Comments

@vjerci
Copy link

vjerci commented Mar 14, 2021

What version of Go are you using (go version)?

go 1.15.6

Does this issue reproduce with the latest release?

Yes

What did you do?

I have a local project projectA in goPath
/Users/xxx/go/src/projectA
I am starting a new local project projectB and i Am unable to include projectA using go modules

What did you expect to see?

I was hoping to be able to include it by just typing

packageB

import packageA

since that didn't work because go modules requires . in first keyword of local path i was hoping we could use some special keyword localhost.com/packageA or go get localhost/packageA which would build a symlink to make it possible to include

What did you see instead?

Some Errors

@mdlayher
Copy link
Member

This looks like a usage question and not a problem with modules. See https://github.com/golang/go/wiki/Questions.

@golang golang locked and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants