Skip to content

fix(build): declare the module path as the repository URL - #16

Open
joaodrp wants to merge 1 commit into
Google-Health-API:mainfrom
joaodrp:fix/module-path
Open

joaodrp wants to merge 1 commit into
Google-Health-API:mainfrom
joaodrp:fix/module-path

Conversation

@joaodrp

@joaodrp joaodrp commented Sep 5, 2026

Copy link
Copy Markdown

go.mod declares module ghealth, so the module cannot be resolved by the path it is fetched from:

$ go install github.com/Google-Health-API/google-health-cli@latest
module declares its path as: ghealth
        but was required as: github.com/Google-Health-API/google-health-cli

That blocks go install and the version managers built on it, which is why the README has to say clone and build. It also leaves everything under pkg/ unimportable, despite the layout announcing those packages as public.

Set the module path to the repository URL and update the imports that follow from it. No behaviour change.

go build, go vet, go test ./... and gofmt -l all clean.

go.mod declares `module ghealth`, so the module cannot be resolved by the path
it is fetched from:

    $ go install github.com/Google-Health-API/google-health-cli@latest
    module declares its path as: ghealth
            but was required as: github.com/Google-Health-API/google-health-cli

That blocks `go install` and the version managers built on it, which is why the
README has to say clone and build. It also leaves everything under `pkg/`
unimportable, despite the layout announcing those packages as public.

Set the module path to the repository URL and update the imports that follow
from it. No behaviour change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant