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

storing go.mod file not in the root of the repo #40299

Closed
arthurvaverko-kaltura opened this issue Jul 20, 2020 · 1 comment
Closed

storing go.mod file not in the root of the repo #40299

arthurvaverko-kaltura opened this issue Jul 20, 2020 · 1 comment

Comments

@arthurvaverko-kaltura
Copy link

arthurvaverko-kaltura commented Jul 20, 2020

usgin golang 1.14

we are generating multiplelibraries in multiple languages so the repo structure is

.gitignore
README.md
generate\csharp ...
generated\go\libname
generated\go\libname\go.mod

the go mod file is not on root looks like this

module github.com/user/repo/generated/go/libname

go 1.14

the repo is tagged with a version v1.0 for example
when trying to get the specific version if fails and gets the latest commit instead
I figured its because there is no mod file in the root of the repo and the module system looks for it to match the tag of the repo.

any way to overcome this ? without moving the mod file to the root of the repo ? or separating the go code into its own repository ?

Stackoverflow link:https://stackoverflow.com/questions/62990985/storing-go-mod-file-not-in-the-root-of-the

@ALTree
Copy link
Member

ALTree commented Jul 20, 2020

Hi,

the Go project does not use its bug tracker for general discussion or asking questions about the language. The Github bug tracker is only used for tracking bugs and proposals going through the Proposal Process.

Please see the Questions wiki page; it has a list of good places for asking questions. Thanks!

Closing here, since this is not a bug.

@ALTree ALTree closed this as completed Jul 20, 2020
@golang golang locked and limited conversation to collaborators Jul 20, 2021
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