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

refactor: Restructure the v2 library to match go module import requirements #48

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

David-T-White
Copy link

@David-T-White David-T-White commented Oct 25, 2023

Go modules require that the module path end in "v2" for module versions 2.x.x. This commit deletes the old v1 directory and renames the former /v2 directory, moving /v2 into the new mcapi directory. Following the pattern of the klog/v2 module, the root module is renamed github.com/Seagate/seagate-exos-x-api-go/v2, satisfying the go version requirements.

The former v1 module will still be available as version 1.0.17.

This PR also updates a variety of go imports and in doing so makes PRs #47 and #49 redundant

… requirements

Go modules require that the module path end in "v2" for module versions 2.x.x.
This commit deletes the old v1 directory and renames the former /v2 directory, moving /v2
into the new mcapi directory. The root module is renamed github.com/Seagate/seagate-exos-x-api-go/v2
feedback: 'mcapi' directory name seems redundant, shortening to 'api'
Copy link
Collaborator

@seagate-chris seagate-chris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@jskazinski jskazinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks David!

@David-T-White David-T-White merged commit e6f3143 into Seagate:main Oct 31, 2023
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.

3 participants