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

[co] Rename port co to cocoyaxi #22442

Merged
merged 11 commits into from
Jan 20, 2022
Merged

Conversation

idealvin
Copy link
Contributor

@idealvin idealvin commented Jan 9, 2022

Describe the pull request

  • What does your PR fix?

Rename co to cocoyaxi.

  • Which triplets are supported/not supported? Have you updated the CI baseline?

    <all / linux, windows, ...>,

  • Does your PR follow the maintainer guide?

    Yes

  • If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

    <Yes / I am still working on this PR>

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

Warning: Local port files SHA is the same as version `2.0.3#1` in `/home/runner/work/vcpkg/vcpkg/versions/c-/cocoyaxi.json`.
-- SHA: a0a36b89728f2f3b402ca7a7e41070d3bfcf5add
-- Did you remember to commit your changes?
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 03ca9b59af1506a86840e3a3a01a092f3333a29b -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 160dd96..07451de 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -1444,9 +1444,13 @@
       "baseline": "1.1.7",
       "port-version": 1
     },
+    "co": {
+      "baseline": "2.0.3",
+      "port-version": 0
+    },
     "cocoyaxi": {
       "baseline": "2.0.3",
-      "port-version": 1
+      "port-version": 0
     },
     "coin": {
       "baseline": "4.0.0",

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 03ca9b59af1506a86840e3a3a01a092f3333a29b -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 160dd96..26660f7 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -1444,6 +1444,10 @@
       "baseline": "1.1.7",
       "port-version": 1
     },
+    "co": {
+      "baseline": "2.0.3",
+      "port-version": 0
+    },
     "cocoyaxi": {
       "baseline": "2.0.3",
       "port-version": 1

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 03ca9b59af1506a86840e3a3a01a092f3333a29b -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 160dd96..26660f7 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -1444,6 +1444,10 @@
       "baseline": "1.1.7",
       "port-version": 1
     },
+    "co": {
+      "baseline": "2.0.3",
+      "port-version": 0
+    },
     "cocoyaxi": {
       "baseline": "2.0.3",
       "port-version": 1

@LilyWangLL LilyWangLL added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Jan 10, 2022
@LilyWangLL LilyWangLL changed the title Rename port co to cocoyaxi [co] Rename port co to cocoyaxi Jan 10, 2022
@LilyWangLL
Copy link
Contributor

Thanks for posting this issue. VCPKG use supports in vcpkg.json instead of vcpkg_fail_port_install. Could you please remove there codes in portfile.cmake?

if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
    vcpkg_fail_port_install(ON_ARCH "arm" ON_TAREGT "uwp")
endif()

And if you rename co to cocoyaxi, you need also rename the directory name VCPKG_ROOT/ports/co to VCPKG_ROOT/ports/cocoyaxi.

@idealvin
Copy link
Contributor Author

Thanks for posting this issue. VCPKG use supports in vcpkg.json instead of vcpkg_fail_port_install. Could you please remove there codes in portfile.cmake?

if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
    vcpkg_fail_port_install(ON_ARCH "arm" ON_TAREGT "uwp")
endif()

And if you rename co to cocoyaxi, you need also rename the directory name VCPKG_ROOT/ports/co to VCPKG_ROOT/ports/cocoyaxi.

@LilyWangLL
Hi, I think I have already renamed it to cocoyaxi. But I don't know how to use supports instead of vcpkg_fail_port_install. Could you help? Thanks!

@LilyWangLL
Copy link
Contributor

@idealvin You just need remove these codes in portfile.cmake.

if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
    vcpkg_fail_port_install(ON_ARCH "arm" ON_TAREGT "uwp")
endif()

@idealvin
Copy link
Contributor Author

@idealvin You just need remove these codes in portfile.cmake.

if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
    vcpkg_fail_port_install(ON_ARCH "arm" ON_TAREGT "uwp")
endif()

ok, I removed it..

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 03ca9b59af1506a86840e3a3a01a092f3333a29b -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index e88b3fd..cd37752 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -1444,6 +1444,10 @@
       "baseline": "1.1.7",
       "port-version": 1
     },
+    "co": {
+      "baseline": "2.0.3",
+      "port-version": 0
+    },
     "cocoyaxi": {
       "baseline": "2.0.3",
       "port-version": 1

@LilyWangLL LilyWangLL added info:reviewed Pull Request changes follow basic guidelines and removed requires:author-response labels Jan 11, 2022
Copy link
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

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

This PR is incorrect since it removes history; it should've been caught by CI.

The correct way to rename a port is to have an empty port under the old name, which depends only on the new port. The new port's version.json should only contain the latest version.

What you need to do here is:

  • restore co as an empty port which depends only on cocoyaxi
  • restore versions/c-/co.json
  • have only the latest version of cocoyaxi in versions/c-/cocoyaxi.json

@strega-nil-ms strega-nil-ms added requires:author-response and removed info:reviewed Pull Request changes follow basic guidelines labels Jan 11, 2022
@LilyWangLL
Copy link
Contributor

@idealvin You could download and unzip the attached file co.zip, then put directory co into VCPKG_ROOT/ports, and put co.json into VCPKG_ROOT/versions/c-.
co.zip

@idealvin
Copy link
Contributor Author

@idealvin You could download and unzip the attached file co.zip, then put directory co into VCPKG_ROOT/ports, and put co.json into VCPKG_ROOT/versions/c-. co.zip

@LilyWangLL ok,thanks! I'll try later. A little busy these days.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 03ca9b59af1506a86840e3a3a01a092f3333a29b -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 74f52cf..9aea936 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -1444,6 +1444,10 @@
       "baseline": "1.1.7",
       "port-version": 1
     },
+    "co": {
+      "baseline": "2.0.3",
+      "port-version": 1
+    },
     "cocoyaxi": {
       "baseline": "2.0.3",
       "port-version": 1
diff --git a/versions/c-/co.json b/versions/c-/co.json
index 6f33ba6..f5291d2 100644
--- a/versions/c-/co.json
+++ b/versions/c-/co.json
@@ -1,7 +1,7 @@
 {
   "versions": [
     {
-      "git-tree": "a45d20b421153f71deffc2dc4da7fd37143b297d",
+      "git-tree": "569af78fe06ff14cd71ec70f14915d06344ed62b",
       "version-semver": "2.0.3",
       "port-version": 1
     },

@idealvin
Copy link
Contributor Author

idealvin commented Jan 17, 2022

This PR is incorrect since it removes history; it should've been caught by CI.

The correct way to rename a port is to have an empty port under the old name, which depends only on the new port. The new port's version.json should only contain the latest version.

What you need to do here is:

  • restore co as an empty port which depends only on cocoyaxi
  • restore versions/c-/co.json
  • have only the latest version of cocoyaxi in versions/c-/cocoyaxi.json

@strega-nil-ms Done. Thanks.

@LilyWangLL LilyWangLL added the info:reviewed Pull Request changes follow basic guidelines label Jan 20, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 03ca9b59af1506a86840e3a3a01a092f3333a29b -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/c-/co.json b/versions/c-/co.json
index dd7c8e5..f5291d2 100644
--- a/versions/c-/co.json
+++ b/versions/c-/co.json
@@ -1,5 +1,10 @@
 {
   "versions": [
+    {
+      "git-tree": "569af78fe06ff14cd71ec70f14915d06344ed62b",
+      "version-semver": "2.0.3",
+      "port-version": 1
+    },
     {
       "git-tree": "812bf72c24739504b6ddc3d3c4d941981ff3a032",
       "version-semver": "2.0.3",

You have modified or added at least one vcpkg.json where a "license" field is missing.
If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/co/vcpkg.json
  • ports/cocoyaxi/vcpkg.json

Valid values for the license field are listed at https://spdx.org/licenses/

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where a "license" field is missing.
If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/co/vcpkg.json
  • ports/cocoyaxi/vcpkg.json

Valid values for the license field are listed at https://spdx.org/licenses/

@strega-nil-ms strega-nil-ms merged commit 20f8760 into microsoft:master Jan 20, 2022
BillyONeal added a commit to BillyONeal/vcpkg that referenced this pull request Feb 9, 2022
Missed in microsoft#22442 due to artifact caching.
@BillyONeal BillyONeal mentioned this pull request Feb 9, 2022
BillyONeal added a commit that referenced this pull request Feb 9, 2022
Missed in #22442 due to artifact caching.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants