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

support devfile 2.2.0, update the script and the library accordingly #88

Merged
merged 4 commits into from
Jun 4, 2021

Conversation

yangcao77
Copy link
Collaborator

@yangcao77 yangcao77 commented May 27, 2021

Signed-off-by: Stephanie yangcao@redhat.com

What does this PR do?

support devfile 2.2.0
update the script ./updateApi.sh to support devfile 2.2.0 as default, accept 2.1.0 as an arg to update 2.1.0
pull in latest schema change with project.Github removed for 2.1.0 & 2.2.0, and update library accordingly

What issues does this PR fix or reference?

Fixes devfile/api#471

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

updated unit tests

Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
go.mod Outdated
@@ -3,7 +3,7 @@ module github.com/devfile/library
go 1.13

require (
github.com/devfile/api/v2 v2.1.0
github.com/devfile/api/v2 v2.0.0-20210527100059-8230c0835f1d
Copy link
Member

Choose a reason for hiding this comment

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

interestingly this is going back down one level? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's the version pulled from main branch. I would expect it's 2.1.0-<timestamp> as well.
Need to take a deeper look into api repo. But it shouldn't affect anything in library repo.

Copy link
Member

Choose a reason for hiding this comment

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

Any updates on this before I approve the PR? why its 2.0.0..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I asked John. He has no idea on why this version has not been updated to 2.1.0. but he said won't affect anything.
Also this should not be a common issue with importing devfile/api, not a library issue.

@yangcao77
Copy link
Collaborator Author

@maysunfaisal this PR is unblocked since #89 has been merged. can you help approve this PR?

@openshift-ci
Copy link

openshift-ci bot commented Jun 4, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maysunfaisal, yangcao77

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [maysunfaisal,yangcao77]

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

@yangcao77 yangcao77 merged commit 252071e into devfile:master Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants