Skip to content

Update Devfile API Go module to add version to module path #280

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

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

johnmcollier
Copy link
Member

What does this PR do?

This PR updates the Go module path of the Devfile API to add the major version to its path, allowing v2 (and higher) versions of the module to be published.

As discussed on yesterday's Devfile cabal, to be able to publish the Devfile API Go module with a version of v2 or higher (and to ensure the module's version matches the Devfile schema version), we decided to update the module path of the Devfile API module to include the major version (v2 in this case). Some discussion on why this is needed can be found here.

Once this PR is merged, consumers of the Devfile API Go module will need to update the import paths of the module's packages (github.com/devfile/api/pkg/... -> github.com/devfile/api/v2/pkg/...) when they update the version of the API module that they pull in that has these changes.

What issues does this PR fix or reference?

N/A, but related to #150 and #278 (I can open a dedicated issue if needed).

Is your PR tested? Consider putting some instruction how to test your changes

N/A

Docs PR

N/A

CC @amisevsk @davidfestal @elsony @kadel @l0rd

Updates the Go module path of the Devfile API to add the major version to its path, allowing v2 (and higher) versions of the module to be published.

Signed-off-by: John Collier <[email protected]>
Copy link
Contributor

@amisevsk amisevsk left a comment

Choose a reason for hiding this comment

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

LGTM as discussed.

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: amisevsk, davidfestal, johnmcollier, sleshchenko
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@johnmcollier johnmcollier merged commit f33d298 into devfile:master Jan 5, 2021
amisevsk added a commit to amisevsk/devworkspace-operator that referenced this pull request Jan 8, 2021
* Update Makefile to point at latest devfile/api commit and support v2
* Update to devfile/api commit f33d2987d137225cd1e8975f6fdfdd2663195a37
* Adapt code to support new module name (.../v2)
  (see: devfile/api#280)

Signed-off-by: Angel Misevski <[email protected]>
amisevsk added a commit to amisevsk/devworkspace-operator that referenced this pull request Feb 17, 2021
* Update Makefile to point at latest devfile/api commit and support v2
* Update to devfile/api commit f33d2987d137225cd1e8975f6fdfdd2663195a37
* Adapt code to support new module name (.../v2)
  (see: devfile/api#280)

Signed-off-by: Angel Misevski <[email protected]>
amisevsk added a commit to devfile/devworkspace-operator that referenced this pull request Feb 22, 2021
* Update Makefile to point at latest devfile/api commit and support v2
* Update to devfile/api commit f33d2987d137225cd1e8975f6fdfdd2663195a37
* Adapt code to support new module name (.../v2)
  (see: devfile/api#280)

Signed-off-by: Angel Misevski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants