How to `go get` a module from a workspace repo?

I run the following command:

go get -u github.com/keyval-dev/odigos/odiglet@v1.0.0

The output of the command is:

go: module github.com/keyval-dev/odigos@v1.0.0 found, but does not contain package github.com/keyval-dev/odigos/odiglet

If you look at the repo in github here, it is clear that github.com/keyval-dev/odigos is not a module since there is no go.mod in this directory, and that github.com/keyval-dev/odigos/odiglet is not a package since it contains go.mod. Why am I seeing this? Is it related to the go.work file being found in the root?

I tried looking at pkg.go.dev (sorry I can’t include a link as the forum show an error when I do so), and it shows me 3 versions like v0.0.0-20231114115523-e928e15a4738, but is lacking the tagged versions in the repo.

Does it make sense? what am I missing?

I am really lost. Any help will be appreciated :pray:

I have added a tag odiglet/v1.0.0 and it seems to resolve the issue

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.