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

fix: Ensure APIs can be used by other Go modules #56

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

mhutter
Copy link
Member

@mhutter mhutter commented Aug 10, 2023

Summary

The go module versioning rules states that packages with a major version greater than v1 must have a major version suffix
(https://go.dev/ref/mod#module-path)

Since the latest versions of this project are v4, the module name must end in /v4. Otherwise,

  • regular 'go get' will fetch v0.2.3 of this repo
  • 'go get ...@v4.18.1' will complain that the module name is invalid.

vshn/appcat-cli#16

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@mhutter mhutter requested a review from Kidswiss August 10, 2023 09:31
@mhutter mhutter self-assigned this Aug 10, 2023
@mhutter mhutter added the bug Something isn't working label Aug 10, 2023
@mhutter mhutter marked this pull request as draft August 10, 2023 09:40
@mhutter

This comment was marked as outdated.

@mhutter mhutter marked this pull request as ready for review August 10, 2023 09:56
The go module versioning rules states that packages with a major version
greater than v1 must have a major version suffix
(https://go.dev/ref/mod#module-path)

Since the latest versions of this project are v4, the module name must
end in `/v4`. Otherwise,

- regular 'go get' will fetch v0.2.3 of this repo
- 'go get ...@v4.18.1' will complain that the module name is invalid.

Signed-off-by: Manuel Hutter <manuel@hutter.io>
@zugao zugao merged commit bced140 into master Aug 22, 2023
3 checks passed
@zugao zugao mentioned this pull request Aug 22, 2023
@mhutter mhutter deleted the fix/go-mod-version branch August 30, 2023 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants