Comments

cilefen’s picture

Issue tags: -QuizNovice +Novice
joshi.rohit100’s picture

Status: Active » Needs review
StatusFileSize
new439 bytes

Done.

cilefen’s picture

Status: Needs review » Needs work

Thanks for working on this issue! There is no need to change the version in composer.json. I will explain why. By itself, editing composer.json has no effect on Drupal because Drupal ships the vendor directory. In other words, the person installing Drupal 8 does not run composer installcomposer install must be run by us. Drupal 8 is different than other projects in this regard.

And in this case, I think we are happy with the 1.2.* release series so we can leave that alone.

Run a composer update on this library and include the patch of that.

joshi.rohit100’s picture

Assigned: Unassigned » joshi.rohit100

The last submitted patch, 2: 2488960-composer-stable-library-egulias-2.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review
StatusFileSize
new40.78 KB

Here is the patch but when i updated this library, I get version 1.2.7 not 1.2.8

cilefen’s picture

Status: Needs review » Needs work

It looks like you must update doctrine/lexer at the same time. You can pass it as another argument.

joshi.rohit100’s picture

Status: Needs work » Needs review
StatusFileSize
new89.01 KB

@cilefen thanks for the help.

joshi.rohit100’s picture

I also see that composer.lock file shows the version 1.2.5 and I think this should also be updated. Should it ?

cilefen’s picture

composer.lock should be in the patch. I get a different patch when I run composer update egulias/email-validator doctrine/lexer. For example, you have changes to ClassLoader that I don't have. What command did you run?

joshi.rohit100’s picture

@cilefen I just ran the same command as you mentioned in #10
composer update egulias/email-validator doctrine/lexer from the core/ directory.

cilefen’s picture

Status: Needs review » Needs work
StatusFileSize
new7.92 KB
new92.85 KB

@joshi.rohit100 You have changes to this file that I do not have when I execute the same command:
core/vendor/composer/ClassLoader.php.

Could you run composer selfupdate then composer update egulias/email-validator doctrine/lexer to see what you get?

cilefen’s picture

@joshi.rohit100 Also, be sure to git pull in your Drupal 8.0.x working copy.

cilefen’s picture

Status: Needs work » Needs review
imiksu’s picture

I got same result as @cilefen in #12 when running composer self-update && composer update egulias/email-validator doctrine/lexer

naveenvalecha’s picture

Seen the new release record of email validator https://github.com/egulias/EmailValidator/releases/tag/1.2.8 and https://github.com/doctrine/lexer/releases/tag/v1.0.1 and there is no other blocking stuff.So it needs Framework Managers eyes.Pinged alexpott over IRC about this issue.+1 for RTBC

daffie queued 12: upgrade-2488960-12.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, 12: upgrade-2488960-12.patch, failed testing.

daffie’s picture

Issue tags: +Needs reroll
cilefen’s picture

Title: Upgrade egulias/EmailValidator to 1.2.8 » Upgrade egulias/EmailValidator to 1.2.9
Issue summary: View changes
cilefen’s picture

Title: Upgrade egulias/EmailValidator to 1.2.9 » Upgrade egulias/EmailValidator to 1.2.7
Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new1.66 KB
new39.06 KB

1.2.7 is the highest we can go because 1.2.9 requires doctrine/lexer >=1.0.1 and core has doctrine/lexer 1.0.

daffie’s picture

The patch looks good to me and can get a RTBC from me. I have only one question:

+++ b/core/vendor/egulias/email-validator/composer.lock
@@ -8,22 +8,27 @@
             "name": "doctrine/lexer",
-            "version": "v1.0",
+            "version": "v1.0.1",

You say that you cannot upgrade to version 1.2.9 because that would require doctrine/lexer >= 1.0.1. But you are upgrading it to version 1.0.1 with this patch.

cilefen’s picture

We are not upgrading doctrine/lexer to v1.0.1 with #21. I don't understand how this works in this case - you can see that core/composer.lock leaves doctrine/lexer at v1.0 with this patch, yet core/vendor/egulias/email-validator/composer.lock says 1.0.1. Perhaps egulias/email-validator was nominally developed against 1.0.1 but it does not require it. We are probably ok:

core/vendor/egulias/email-validator/composer.json:

  //...
  "require":      {
    "php": ">= 5.3.3",
    "doctrine/lexer": "~1.0"
  },
  //...
cilefen’s picture

We are not upgrading doctrine/lexer to v1.0.1 with #21. I don't understand how this works in this case - you can see that core/composer.lock leaves doctrine/lexer at v1.0 with this patch, yet core/vendor/egulias/email-validator/composer.lock says 1.0.1. Perhaps egulias/email-validator was nominally developed against 1.0.1 but it does not require it. We are probably ok:

core/vendor/egulias/email-validator/composer.json:

  //...
  "require":      {
    "php": ">= 5.3.3",
    "doctrine/lexer": "~1.0"
  },
  //...
daffie’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

catch’s picture

Status: Reviewed & tested by the community » Needs review

Why don't we upgrade doctrine/lexer first, then this afterwards straight to 1.2.9?

naveenvalecha’s picture

catch
can we filed a followup for upgrading doctrine/lexer ?

cilefen’s picture

Title: Upgrade egulias/EmailValidator to 1.2.7 » Upgrade egulias/EmailValidator to 1.2.9
Status: Needs review » Postponed
Issue tags: -Needs reroll

@naveenvalecha Open an issue to upgrade doctrine/lexer, if one does not already exist, and post the link to the issue here.

cilefen’s picture

Issue summary: View changes
cilefen’s picture

Agreed we will go to 1.2.9 after #2516078: Upgrade doctrine/lexer to v1.0.1.

cilefen’s picture

Aggravatingly, the current version of egulias/email-validator in HEAD prevents going higher that ~1.0 on doctrine/lexer.

catch’s picture

That's unfortunate, probably easiest to combine the patches here?

cilefen’s picture

@catch Well the plot thickens - 1.0.1 is the highest lexer version, so we can get #2516078: Upgrade doctrine/lexer to v1.0.1 in then just do this.

cilefen’s picture

Status: Postponed » Needs work
Issue tags: +Needs reroll

This is unblocked now.

naveenvalecha’s picture

working on it

cilefen’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new92.34 KB

Too - late, maybe post a review.

naveenvalecha’s picture

StatusFileSize
new86.45 KB

Rerolled against HEAD

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Removing egulias/email-validator (1.2.5)
  - Installing egulias/email-validator (1.2.9)
    Downloading: 100%         

Writing lock file
Generating autoload files
naveenvalecha’s picture

Status: Needs review » Reviewed & tested by the community

#36
Ok. The patch seems good. RTBC if test passes

cilefen’s picture

StatusFileSize
new92.34 KB

#37 is missing file rename. This is the one we want.

cilefen’s picture

Status: Reviewed & tested by the community » Needs review
naveenvalecha’s picture

#39, RT
After checking #37 and #39,
#37 missed a file /core/vendor/egulias/email-validator/documentation/Other.md

#39 don't have the /core/vendor/egulias/email-validator/.gitignore file of email-validator https://github.com/egulias/EmailValidator/blob/1.2.9/.gitignore ?

cilefen’s picture

The .gitignore file did not change in the composer update. I am not sure what you mean.

naveenvalecha’s picture

StatusFileSize
new86.45 KB

Discussed with @cilefen over IRC about #41 and it was due to .gitignore settings that reflected in the patch.

cilefen’s picture

Status: Needs review » Reviewed & tested by the community

This is ready to go if it is green.

cilefen’s picture

A reroll.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll
git ac https://www.drupal.org/files/issues/upgrade-2488960-45.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 94803  100 94803    0     0  75812      0  0:00:01  0:00:01 --:--:-- 75903
error: patch failed: core/vendor/composer/installed.json:3558
error: core/vendor/composer/installed.json: patch does not apply

Needs a reroll.

cilefen’s picture

Status: Needs work » Needs review
StatusFileSize
new2.04 KB
new92.64 KB
naveenvalecha’s picture

Status: Needs review » Reviewed & tested by the community

It will be green(tested locally with php 5.6) if there will not be any other changes in the composer.json during this time.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs reroll

Committed 818d1d3 and pushed to 8.0.x. Thanks!

  • alexpott committed 818d1d3 on 8.0.x
    Issue #2488960 by cilefen, joshi.rohit100, naveenvalecha: Upgrade...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.